久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何解碼/獲取文件編碼(Power BI 桌面文件)

how to decode/ get encoding of file (Power BI desktop file)(如何解碼/獲取文件編碼(Power BI 桌面文件))
本文介紹了如何解碼/獲取文件編碼(Power BI 桌面文件)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我正在嘗試解碼 Power BI 桌面報(bào)表 (pbix) 內(nèi)部文件 (DataMashup).我的目標(biāo)是使用任何編程語(yǔ)言創(chuàng)建 Power-BI 桌面報(bào)表、數(shù)據(jù)模型.我使用 Java 作為初始值.

I am having power BI desktop report(pbix) internal file (DataMashup), which i am trying to decode. My Aim is to create Power-BI desktop report, Data Model using any programming language. I am using Java for initial.

文件使用某種編碼技術(shù)進(jìn)行編碼.

files are encoded with some encoding technique.

我嘗試獲取文件的編碼,它返回 windows 1254.但沒(méi)有進(jìn)行解碼.

I tried to get encoding of file and it is returning windows 1254. but decoding is not happening.

File f = new File("example.txt");

    String[] charsetsToBeTested = {"UTF-8", "windows-1254", "ISO-8859-7"};

    CharsetDetector cd = new CharsetDetector();
    Charset charset = cd.detectCharset(f, charsetsToBeTested);

    if (charset != null) {
        try {
            InputStreamReader reader = new InputStreamReader(new FileInputStream(f), charset);
            int c = 0;
            while ((c = reader.read()) != -1) {
                System.out.print((char)c);
            }
            reader.close();
        } catch (FileNotFoundException fnfe) {
            fnfe.printStackTrace();
        }catch(IOException ioe){
            ioe.printStackTrace();
        }

    }else{
        System.out.println("Unrecognized charset.");
    }

文件解壓也不行

public void unZipIt(String zipFile, String outputFolder)
{
    byte buffer[] = new byte[1024];
    try
    {
        File folder = new File(outputFolder);
        if(!folder.exists())
        {
            folder.mkdir();
        }
        ZipInputStream zis = new ZipInputStream(new FileInputStream(zipFile));
        System.out.println(zis);

        System.out.println(zis.getNextEntry());
        for(ZipEntry ze = zis.getNextEntry(); ze != null; ze = zis.getNextEntry())
        {
            String fileName = ze.getName();
            System.out.println(ze);
            File newFile = new File((new StringBuilder(String.valueOf(outputFolder))).append(File.separator).append(fileName).toString());
            System.out.println((new StringBuilder("file unzip : ")).append(newFile.getAbsoluteFile()).toString());
            (new File(newFile.getParent())).mkdirs();
            FileOutputStream fos = new FileOutputStream(newFile);
            int len;
            while((len = zis.read(buffer)) > 0) 
            {
                fos.write(buffer, 0, len);
            }
            fos.close();
        }

        zis.closeEntry();
        zis.close();
        System.out.println("Done");
    }
    catch(IOException ex)
    {
        ex.printStackTrace();
    }
}

推薦答案

您可以使用 System.IO.Packaging 庫(kù)來(lái)提取 Power BI 數(shù)據(jù)混搭.它使用 OPC 封裝標(biāo)準(zhǔn),請(qǐng)參閱 這里.

You can use the System.IO.Packaging library to extract the Power BI data mashup. It uses the OPC package standard, see here.

這篇關(guān)于如何解碼/獲取文件編碼(Power BI 桌面文件)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Java Remove Duplicates from an Array?(Java從數(shù)組中刪除重復(fù)項(xiàng)?)
How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio(如何修復(fù)調(diào)用失敗來(lái)自服務(wù)器的意外響應(yīng):在 Android 工作室中未經(jīng)授權(quán))
AES encryption, got extra trash characters in decrypted file(AES 加密,解密文件中有多余的垃圾字符)
AES Error: Given final block not properly padded(AES 錯(cuò)誤:給定的最終塊未正確填充)
Detecting incorrect key using AES/GCM in JAVA(在 JAVA 中使用 AES/GCM 檢測(cè)不正確的密鑰)
AES-256-CBC in Java(Java 中的 AES-256-CBC)
主站蜘蛛池模板: 精品乱人伦一区二区三区 | 日本精品一区二区三区在线观看视频 | 欧美一区二区三区,视频 | 99精品在线 | 欧美日韩一区二区三区不卡视频 | 日韩精品一区在线 | 日韩欧美手机在线 | 国产精品一区二区久久 | 成人性生交大片免费看中文带字幕 | 欧美激情99| 久久精品播放 | 日韩在线一区二区 | 亚洲免费一区 | 亚洲成年影院 | 欧美炮房 | 国产精品99精品久久免费 | 亚洲成人高清 | 日韩国产精品一区二区三区 | 韩日在线| 在线播放国产一区二区三区 | 羞羞色影院 | 插插宗合网 | 日韩一区二区在线免费观看 | av黄色免费| 欧美成人a | 日韩精品久久一区 | 国产精品久久国产愉拍 | www.99re| 亚洲伊人久久综合 | 国产一级淫片a直接免费看 免费a网站 | 国产在线高清 | sese视频在线观看 | 91久久久www播放日本观看 | 久久亚洲一区二区三区四区 | 福利视频三区 | 户外露出一区二区三区 | 黄色免费av | 中文字幕一区二区三区不卡 | 国产黄色在线观看 | av大片| 亚洲视频一区在线 |