Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I am writing a java program for fingerprint recognition, and I insert the fingerprint image in the MySQL database( in a field blob), but now is the problem.
How do I go back to the image of the fingerprint? where I have to print it?( I presume in a canvas). help me please is very important, thanks to all.
The blob is a array of bytes, so is the Image.
So
img -> read bytes -> store as blob
vs
blob -> read bytes -> store as img
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am developing a java swing based application which show thumbnail of any format(jpg,png) images. For that, at first I read the image file by ImageIO.read(file name) and then create thumbnail of it. But it shows null pointer exception when read PSD format file.
I use ideli library for read PSD type file but it requires subcription/paid. So there have any free library to read PSD type file in Java?
image = ImageIO.read(new File(i));
thumb = Thumbnails.of(image).size(140,100).outputFormat("png").asBufferedImage();
ImageIO.write(thumb, "png", new File("thumb.png"));
By above code, I can read (without PSD) image file and create thumbnail of image.
Have a read of the documentation, PSD is not a supported format.
You might find some value from a similar question here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
I have looked around but have not been able to find anything related. I have 3 Lists (week, day, period) I need to write them to a file so that they are not deleted when the app is closed. How would I write these lists to a file and then when the app is open read them back into a List as they were before. Not sure if this is a stupid question.
You can find some examples in the android doc.
Basically, you can use File like in Java, for example to write (from android doc):
String FILENAME = "hello_file";
String string = "hello world!";
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
how to clear blob column cell in MySQL without remove complete row in the data table and what is the default value in MySQL blob data type ?
From 11.4.3. The BLOB and TEXT Types:
BLOB and TEXT columns cannot have DEFAULT values.
Thus, if the column is NULLABLE then NULL is the default; otherwise there is no default value. (Although, at the application level, a blob of length=0 might be a sensible "default".)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Could you point me in the right direction to find a tutorial on how to convert a grayscale image to it's original colors? Is this even possible?
I've tried using BufferedImage and applying a function to the RGB values by bitshifting them 8 bits to the left and isolating the reds, but, of course, there are no reds that are found, as it is grayscale.
I'd really appreciate a push in the right direction!
"Is this even possible?" -- No, not a prayer's chance in Hades. Once you have a grayscale image, all color information is gone.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I was developing an java swing application to add view and modify the list of medicines.While adding the medicines it should show the list from the database(like google search box).For example if we press "p" it should show 'paracetamol' from the database.
You should implement a change listener on the text input box, when the text is changed, run a query to the database with the contents of the input box.