当前位置: 首页 > 知识库问答 >
问题:

位图工厂﹕ 无法解码流:java。伊奥。FileNotFoundException

巫马化
2023-03-14

当我在ArrayList

public class ListViewActivity extends ListActivity implements AdapterView.OnItemClickListener {

    private static Context context;
    ConnectionDetector cd = new ConnectionDetector(this);

    //Hashmap für die XML-Tags
    ArrayList<HashMap<String, String>> projectItems = new ArrayList<>();
    ArrayList<HashMap<String, String>> taskItems = new ArrayList<>();

    // XML-Tags 
    static final String KEY_PROJECT = "_project"; //Projekt Eltern
    static final String KEY_UUID = "uuid";
    static final String KEY_NAME = "name";
    static final String KEY_JOBTITLE = "jobtitle";
    static final String KEY_JOBINFO = "jobinfo";
    static final String KEY_PROJECTIMAGE = "image";
    static String projectImageString = "";

    // XML-Tags 
    static final String KEY_TASK = "task";
    static final String KEY_UUID_OBJ = "uuid_obj";
    static final String KEY_TITLE = "title";
    static final String KEY_INFO = "info";
    static final String KEY_OBJECT = "object";
    static final String KEY_LOCATION = "location";
    static final String KEY_OBJECT_ID = "object_id";
    static final String KEY_OBJECT_SNR = "object_snr";
    static final String KEY_REGISTRATION_ID = "registration_id";
    static final String KEY_TASKIMAGE = "task_image";
    static final String KEY_TASK_HEADLINE = "task_headline";
    static final String KEY_TASK_SUBJECT = "task_subject";
    static final String KEY_TASK_ACTION = "task_action";
    static final String KEY_TASK_PRIORITY_COLOR = "task_priority_color";
    static final String KEY_TASK_STATUS = "task_status";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        File file = new File(this.getFilesDir(), "example.xml");
        if (file.exists()) {

            XMLParser parser = new XMLParser();
            Document doc = parser.getDomElement(readFromFile("example.xml"));

            NodeList nodeListProject = doc.getElementsByTagName(KEY_PROJECT);
            NodeList nodeListTasks = doc.getElementsByTagName(KEY_TASK);

            //Schleife für Aufgaben
            for (int i = 0; i < nodeListTasks.getLength(); i++) {
                HashMap<String, String> map = new HashMap<>();
                Element e = (Element) nodeListTasks.item(i);

                map.put(KEY_UUID_OBJ, parser.getValue(e, KEY_UUID_OBJ));
                map.put(KEY_TITLE, parser.getValue(e, KEY_TITLE));
                map.put(KEY_INFO, parser.getValue(e, KEY_INFO));
                map.put(KEY_OBJECT, parser.getValue(e, KEY_OBJECT));
                map.put(KEY_LOCATION, parser.getValue(e, KEY_LOCATION));
                map.put(KEY_OBJECT_ID, parser.getValue(e, KEY_OBJECT_ID));
                map.put(KEY_OBJECT_SNR, parser.getValue(e, KEY_OBJECT_SNR));
                map.put(KEY_REGISTRATION_ID, parser.getValue(e, KEY_REGISTRATION_ID));
                map.put(KEY_TASKIMAGE, parser.getValue(e, KEY_TASKIMAGE));
                map.put(KEY_TASK_HEADLINE, parser.getValue(e, KEY_TASK_HEADLINE));
                map.put(KEY_TASK_SUBJECT, parser.getValue(e, KEY_TASK_SUBJECT));
                map.put(KEY_TASK_ACTION, parser.getValue(e, KEY_TASK_ACTION));
                map.put(KEY_TASK_PRIORITY_COLOR, parser.getValue(e, KEY_TASK_PRIORITY_COLOR));
                map.put(KEY_TASK_STATUS, parser.getValue(e, KEY_TASK_STATUS));
                map.put(KEY_TASKIMAGE, parser.getValue(e,KEY_TASKIMAGE));

                taskItems.add(map);
            }

            // Schleife für Auftragsinfos
            for (int i = 0; i < nodeListProject.getLength(); i++) {

                HashMap<String, String> map = new HashMap<>();
                Element e = (Element) nodeListProject.item(i);

                map.put(KEY_UUID, parser.getValue(e, KEY_UUID));
                map.put(KEY_NAME, parser.getValue(e, KEY_NAME));
                map.put(KEY_JOBTITLE, parser.getValue(e, KEY_JOBTITLE));
                map.put(KEY_JOBINFO, parser.getValue(e, KEY_JOBINFO));
                map.put(KEY_PROJECTIMAGE, parser.getValue(e,KEY_PROJECTIMAGE));



                projectItems.add(map);
            }

            try {
                ListAdapter adapter = new SimpleAdapter(ListViewActivity.this, projectItems,
                    R.layout.list_item_projects,
                    new String[]{KEY_JOBTITLE, KEY_JOBINFO},
                    new int[]{R.id.jobtitle, R.id.jobinfo});
                setListAdapter(adapter);
            } catch (NullPointerException e){
                e.printStackTrace();
            }

            //file.delete();

        } else {
            DownloadXMLFiles dlxmlf = new DownloadXMLFiles();
            dlxmlf.execute();
        }

        Log.v("onCreate: ", " MenuItems: " + projectItems);

        ListViewActivity.context = getApplicationContext();

        ListView lv = getListView();
        lv.setOnItemClickListener(this);
    }

XMLParser。JAVA

public class XMLParser {
ConnectionDetector cd = new ConnectionDetector(ListViewActivity.getAppContext());

public String getXMLFromUrl(String url) {
    String xml = null;

    if (cd.isConnectingToInternet()) {
        try {
            //defaultHttpClient
            DefaultHttpClient httpClient = new DefaultHttpClient();
            HttpPost httpPost = new HttpPost(url);

            HttpResponse httpResponse = httpClient.execute(httpPost);
            HttpEntity httpEntity = httpResponse.getEntity();
            xml = EntityUtils.toString(httpEntity);

        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        } catch (ClientProtocolException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    } else {
        return null;
    }

    return xml;
    //return xml
}

public Document getDomElement(String xml) {

    Document doc = null;
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    try {
        DocumentBuilder db = dbf.newDocumentBuilder();

        InputSource is = new InputSource();
        is.setCharacterStream(new StringReader(xml));

        doc = db.parse(new ByteArrayInputStream(xml.getBytes()));
    } catch (ParserConfigurationException e) {
        Log.e("Error Parser: ", e.getMessage());
        return null;
    } catch (SAXException e) {
        Log.e("Error SAX: ", e.getMessage());
        return null;
    } catch (IOException e) {
        Log.e("Error IO: ", e.getMessage());
        return null;
    }
    return doc;
}

public String getValue(Element item, String str) {
    NodeList n = item.getElementsByTagName(str);
    return this.getElementValue(n.item(0));
}

public final String getElementValue(Node elem) {
    Node child;
    if (elem != null) {
        if (elem.hasChildNodes()) {
            for (child = elem.getFirstChild(); child != null; child = child.getNextSibling()) {
                if (child.getNodeType() == Node.TEXT_NODE) {
                    return child.getNodeValue();
                }
            }
        }
    }
    return "";
}

}

我的decdeBase64方法:

public static Bitmap decodeBase64(String input) {
    byte[] decodedByte = Base64.decode(input, Base64.DEFAULT);
    return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);
}

我想知道如何将从XML解析的图像正确添加到SimpleAdapter。我必须创建自己的适配器吗?

05-05 12:39:17.425  17335-17335/de.app E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /iVBORw0KGgoAAAANSUhEUgAAAP8AAAB/CAIAAACv2oNFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAC+lSURBVHhe7X0HWFRH9z5fEpVetvdl+y4I0rewvbIURRTsGmtUFGsSNbFEU0xVP9NNNCbGErux99h7F3tBBRUEVKQL/s/cu6yIRE3y/R7zf/aO77Oyc8+0e8+cec/cmVmv735cMmjE1IHDPiBAwKMAau/Vre9YQUR7XlgKAQIeBUFEuteAoVP44alcuYMAAY8CqD2u/WlceRIBAh4FUHuv/kMnwyjAkdkJEPAo8MKSCdtPwEOBbD+h/QQ8EwTzIeC5IJgPAc8FwXwIeC4I5kPAc0EwHwKeCzfzId71EvA4oHe9BPMh4JkAtSeYDwEPBT+8LWj/ZIL5EPBAEMyHgOeCYD4EPBcE8yHgueCHI9tPaD8BTwSu/QTzIeCJQMyH8HoJeCZwr5dgPgQ8EWjGk2A+BDwTaJ0PwXwIeCbc8/0E8yHgcSCYDwHPBcF8CHguiN0tBDwXyPYT2k/AM0EwHwKeC4L5EPBcEMyHgOcCzXgSzIeAZ4JgPgQ8FzjzIVa5EfBEEMyHgOfCvc6HYD4EPA7Evl4CngtiXy8BzwWxr5eA54JgPgQ8FwTzIeC5IJgPAc8FcaIJAc8FPt9PMB8CnghQe4L5EPBQoHU+BPMh4Jkg1ngS8FwQzIeA54JgPgQ8FwTzIeC5QLaf0H4CngmC+RDwXBDMh4Dnws18iHe9BDwOaMaTYD4EPBP4Oh+C+RDwRODMh1jlRsATQTAfAv8fgCsHODiApy79ExDonGz5RHw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YxeQSUvv92pwtDc1YeWKLfDVYO0VAqxGZmVIrGyxOS/vOkTOm7/KkdI3Ki4to9OQBb+tgZjDR04whWaWxIqaKbczhOZXvCM6dBoCl7766lc/SkwAXQm8LlRswts4euynPjToLYjYAKthYzfHlxIz95eVcBVCTVWN3vY6CRwAmYv8IEjtXq3kb078FATGjfu8VVAcT55M5un8Q2K/e7XmppaS3J/r8DW4OrArXicqgnkdqBtc35ZDpnU19fBZ3VVVXUNGp2u3bgFHRKciqZJ/joI5tM8wLGDIT5alQm3O3volJYUUHRwHJP8qRqNtkt9/cOt2/YHs7XISslBR/XtOg4HyeMnzrGERjBa8LBD2Fov/8hEY1eIz809C04tqCYIgw6ROLojR0/W1dX17j/By681mG1wGHxomle9Izds2AnyXXsMD2YmQubBbF1mt5HFpfcUUangRwJd6dgVFZSRmR3I0vrTVXPmLIOvnbqNhN7Flpv9WZrOPd+EmLWrt7/iExnANNAEVl9aQjA9Iff0hSsXr3Ggo6IhAvNQYaDg65X6zqBg2Tnv+ZDjsMhkP3pinKoD6Ny+A0cCWRpWA6vBZgKs8qiUgtu3oAgIlRWVKkMXEgw7DbYffFyAP0vbs9+YysoqaUw7RBGh58iTWlFVb4/5PP96gVCWRBeD7iLj3az9hkggctA5z+Seg1LqMJMPhv8hDAGPUAcY/c7nPuiJoPmJJmn/Egjm0zx4MqT9CfpucK8HDpvckqpEz1Vq86YkKDWdgYWv37grgKFhS5H2+1I0n34+ByRzRn3YghQDpg7TBgdb4iBzdSdPny0tKhaB/yoCo2sjheoSNF3r62vPnLkUxFKzMH4PgAfpQ1Vlj5wK+QwZ9p4fTQORZJ4xNS372vUCaVQaQwysQ5WdMxkEsrrlBLB1IVyd2doHbGKvvqOD6AaWwhLASuzeZywILF269j++kUypk
05-05 12:39:17.425  17335-17335/de.app I/System.out﹕ resolveUri failed on bad bitmap uri: iVBORw0KGgoAAAANSUhEUgAAAP8AAAB/CAIAAACv2oNFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjw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5tM8wLGDIT5alQm3O3volJYUUHRwHJP8qRqNtkt9/cOt2/YHs7XISslBR/XtOg4HyeMnzrGERjBa8LBD2Fov/8hEY1eIz809C04tqCYIgw6ROLojR0/W1dX17j/By681mG1wGHxomle9Izds2AnyXXsMD2YmQubBbF1mt5HFpfcUUangRwJd6dgVFZSRmR3I0vrTVXPmLIOvnbqNhN7Flpv9WZrOPd+EmLWrt7/iExnANNAEVl9aQjA9Iff0hSsXr3Ggo6IhAvNQYaDg65X6zqBg2Tnv+ZDjsMhkP3pinKoD6Ny+A0cCWRpWA6vBZgKs8qiUgtu3oAgIlRWVKkMXEgw7DbYffFyAP0vbs9+YysoqaUw7RBGh58iTWlFVb4/5PP96gVCWRBeD7iLj3az9hkggctA5z+Seg1LqMJMPhv8hDAGPUAcY/c7nPuiJoPmJJmn/Egjm0zx4MqT9CfpucK8HDpvckqpEz1Vq86YkKDWdgYWv37grgKFhS5H2+1I0n34+ByRzRn3YghQDpg7TBgdb4iBzdSdPny0tKhaB/yoCo2sjheoSNF3r62vPnLkUxFKzMH4PgAfpQ1Vlj5wK+QwZ9p4fTQORZJ4xNS372vUCaVQaQwysQ5WdMxkEsrrlBLB1IVyd2doHbGKvvqOD6AaWwhLASuzeZywILF269j++kUypkycDKmL1psSOeWda6Z0yrs
05-05 12:39:17.685  17335-17335/de.app D/dalvikvm﹕ GC_FOR_ALLOC freed 478K, 25% free 2992K/3952K, paused 18ms, total 18ms
05-05 12:39:17.705  17335-17335/de.app E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /iVBORw0KGgoAAAANSUhEUgAAAP8AAAB/CAIAAACv2oNFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAC+lSURBVHhe7X0HWFRH9z5fEpVetvdl+y4I0rewvbIURRTsGmtUFGsSNbFEU0xVP9NNNCbGErux99h7F3tBBRUEVKQL/s/cu6yIRE3y/R7zf/aO77Oyc8+0e8+cec/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JoPmJJmn/Egjm0zx4MqT9CfpucK8HDpvckqpEz1Vq86YkKDWdgYWv37grgKFhS5H2+1I0n34+ByRzRn3YghQDpg7TBgdb4iBzdSdPny0tKhaB/yoCo2sjheoSNF3r62vPnLkUxFKzMH4PgAfpQ1Vlj5wK+QwZ9p4fTQORZJ4xNS372vUCaVQaQwysQ5WdMxkEsrrlBLB1IVyd2doHbGKvvqOD6AaWwhLASuzeZywILF269j++kUypkycDKmL1psSOeWda6Z0yrs

共有1个答案

弘承业
2023-03-14

也许您可以捕获FileNotFoundException并获取整个堆栈跟踪。可能会提供更好的想法。。。

 类似资料:
  • 我想解码我从画廊拍的照片,但它有一个错误。我尝试过各种方法,但都没有成功。请帮我修改代码。 这是我的代码:https://pastebin.com/syWjqPDK } 这是logcat的结果

  • 构建了一个简单的springboot应用程序,包括一些方面的检查架构等。 我试着捕捉系统的每一个呼叫。出来println()给出使用警告,这就是我目前发现的: System.out.println()使用PrintStream,所以我尝试了这个: 但没有成功。日志上写着 一个类似的方面正在发挥作用,但是执行而不是调用:

  • 我正试图让jBehave在我的两个模块的谷歌应用引擎项目中模仿https://github.com/ctesniere/appengine-modules-sample-java.我使用Maven生成了jBehave原型()。我成功地运行了它。 然而,当我手动将更改应用到我的目标项目的pom.xml,并复制由jBehave原型生成的两个java文件时,我无法获得成功的。 我得到以下错误: 我找不到

  • 本文向大家介绍java  工厂方法详解及实例代码,包括了java  工厂方法详解及实例代码的使用技巧和注意事项,需要的朋友参考一下 工厂方法概述 工厂方法模式中抽象工厂类负责定义创建对象的接口,具体对象的创建工作由继承抽象工厂的具体类实现。 优点 客户端不需要在负责对象的创建,从而明确了各个类的职责,如果有新的对象增加,只需要增加一个具体的类和具体的工厂类即可,不影响已有的代码,后期维护容易,增强

  • 问题内容: 嘿,我不确定为什么每次选择图库中的图像时都会出现这种情况吗? 这是代码: 错误: 问题答案: 不要假设有文件路径。Android 4.4及更高版本即将删除它们。而且您获得的uri已经没有路径。 您仍然可以通过()或文件描述符访问文件内容。 在这里进行了解释:ContentProviders:打开一个文档(向下滚动,指向该节的链接似乎已损坏) 而且确实适用于较旧的android版本。