Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WriteFile don't work as expected #47

Open
GoogleCodeExporter opened this issue Feb 4, 2016 · 0 comments
Open

WriteFile don't work as expected #47

GoogleCodeExporter opened this issue Feb 4, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Take a picture using device camera
2. Move the picture to Environment.getExternalStorageDirectory()
3. Rename it to image.jpg
4. Run the JUnit test case

What is the expected output? What do you see instead?

. WriteFile.writeBytes8:
     I expected as output a 8bpp image as output
     I see instead a invalid file format with 4.9Mb. I tried to open the file using Gimp 2.6 (attached image) but received a error dialog;

. WriteFile.writeMem:
     I expected as output a array of bytes filled with the specified format
     I see instead a null value

. WriteFile.writeImpliedFormat 
     I expected as output a file saved with the format compatible with the extesion
     I see instead that the file don't exist anywhere

What version of the product are you using? On what operating system?

Mac OS X Lion - Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; 
root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Eclipse Android Developer Tools: Build: v21.1.0-569685
Android Debug Bridge version 1.0.31
ndk-build version: GNU Make 3.81 (This program built for 
i386-apple-darwin10.8.0)
The Device is the Galaxy Note II GT-N7100 with Android 4.1.2 and LG Optimus L7 
(p700) with CyanogenMod (http://get.cm/get/7De)

Please provide any additional information below.

Please, see the JUnit test case attached


Original issue reported on code.google.com by [email protected] on 22 May 2013 at 8:16

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant