As the title, I create a ByteArray to store the file in blob like this:
byte[] red_buf = myCursor.getBlob(1);
And I wanna use FileOutputStream to open.
But I don't know how to do.
Can anyone give me a example or website please ??
Asked
Active
Viewed 2,006 times
2
![](../../users/profiles/51382.webp)
willcodejavaforfood
- 39,821
- 17
- 77
- 107
![](../../users/profiles/364979.webp)
Kooper
- 715
- 1
- 10
- 13
2 Answers
0
What you're looking for may actually be ByteArrayInputStream, instead of FileOutputStream. That's just a guess because the question is very unclear
![](../../users/profiles/2504283.webp)
ognian
- 11,291
- 4
- 32
- 33
0
Judging from the documentation, it looks like you could use getBinaryStream() to read the BLOB
documentation: http://developer.android.com/reference/java/sql/Blob.html
![](../../users/profiles/550471.webp)
Someone Somewhere
- 22,369
- 11
- 111
- 155