在使用croppie js库裁剪上传的图像之后,我有一个base64编码的图像上传到Python Flask Web应用程序。保存的文件显示在Linux文件系统中,但是当我尝试查看该图像时,各种软件都告诉我该文件无效。我不确定自己在做什么错。
textField = new JTextField(20);
textField.addActionListener(new MyTextActionListener());
textField.getDocument().addDocumentListener(new MyDocumentListener());
textField.getDocument().putProperty("name", "Text Field");
textArea = new JTextArea();
textArea.getDocument().addDocumentListener(new MyDocumentListener());
textArea.getDocument().putProperty("name", "Text Area");
希望上传原始文件的复制版本,而只是一个无法使用的损坏的图像文件。