How to display and save a picture stored as BLOB in MySQL database in Jsp?
Hello i am doing a dataentry form where in i will display the picture stored as Blob in MySQL database to the browser. The form also allow changing the picture and updating the picture Blob in the database.
How can i do it? I try this
<img src'"<%=rs.getBlob("picture")%> but it doesn't display the picture.
another thing, how can i save it in the database, if is use the file field in the html form?
thanks in advance for your help.
Hello i am doing a dataentry form where in i will display the picture stored as Blob in MySQL database to the browser. The form also allow changing the picture and updating the picture Blob in the database.
How can i do it? I try this
<img src'"<%=rs.getBlob("picture")%> but it doesn't display the picture.
another thing, how can i save it in the database, if is use the file field in the html form?
thanks in advance for your help.
Similar Messages
-
Forms 6i - display into image item picture stored in blob type on database
hi to all
i searched on this forum but in don't found solution my problem.
I created table with a column blob and i design form that insert and display image stored in database ( oracle 9i )
i used image item type with block database based
my version forms is
Forms [32 Bit] Version 6.0.8.13.0 (Production)
if i define column table like "long raw" it worked but i used blob i insert but i don't display image
error is:
ORA-00932: inconsistent datatypes: expected got
thanks a lot to all
byeI know, that the false forms-version (patch) gives you this errors. Try a newer patchset. For example patch 13-15 (for 9i), or 17 (10g rel. 1)
-
How to drag and drop a picture at run time in a window displaying pictures?
How to drag and drop a picture at run time in a window displaying pictures on the front panel. The main thing is that the window is displaying frames continuously?
vivman,
So from your description you have a picture control where you've already created an image and you'd like to drag an image around inside of the picture control. This can be done although it is going to take a significant amount of research and programming on your behalf. You can use the drag event in the event handler to find out when the drag occurs and where the cursor is. Then edit the picture as you move your mouse so that when you drop the picture gets updated.
The even structure is a somewhat advanced topic and the drag and drop feature is one of the more advanced uses of this structure. I would search the example finder (help>>find examples) for "event" and "drag" to see how to use these events. Also you'll want to look at the examples for the picture control.
Sounds like a cool project! Check out Darren's Weekly Nugget 10/30/2006 this topic (http://forums.ni.com/ni/board/message?board.id=170&message.id=212920). It might prove useful.
Good luck!
Chris C
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect -
How to set and save Custom Print Settings in Aperture?
How to set and save Custom Print Settings in Aperture
Hi,
I am printing 12x18" images on 13x19" sheets. I find it difficult to enter the 13x19" dimensions because each value jumps to another random value when I move to enter the second dimension. For instance 13 jumps to, say, 8.5 as I type 19 into the second box. Same with the sheet dimensions.
Also, when I finally get it all correctly, the margins don't set themselves automatically - which I would I expect.
Then, even though I save the setting by clicking Save Setting at the gear below, next time I turn Aperture on, it's all gone.
Any ideas? Thanks.
RaphaelFor me, it is working with these settings, Raphael.
Does your image have a 12x18" aspect ratio? You may want to crop it to the desired aspect ratio before printing.
I can only test with Aperture 3.6 on Yosemite 10.1. -
How to change and save a new file in Edge web Lumira server for Team ?
Hi Lumira folks,
I've installed SAP Lumira 1.0, Edge edition and View a sample 'Dairy Wholesaler-Sample"
I'd like to change it and save as new file, but "Save" button is disabled and when I put my mouse over the button,
it says "Save Option is disabled in this version".
Is there any idae how to change and save as a new file in Lumira Edge ?
Many Thanks.
JHI've just found the reason as below.
http://scn.sap.com/community/lumira/blog/2015/03/20/lumira-server-for-teams-edge-edition-version-compatibility
The current version of Lumira
server for teams is 1.0. This version uses Lumira 1.22 as its 'engine' as this
was the version of Lumira Desktop that was shipped at the same time.
Hence with the current Lumira
version compatibility; namely that a newer version of the product can open an
older document, but an older version cannot open a newer document, care must be
taken when deploying Lumira server for teams.
Lumira server for teams is only
compatible with Lumira desktop 1.22. If you intend to deploy Lumira server for
teams, ensure your desktop users do not move to a later version of the desktop.
Content created in a later version of Lumira desktop can be uploaded and shared
via Lumira server for teams, but it cannot be viewed or edited online in the
browser.
Ensure desktop users disable the
auto update capabilities in the desktop preferences, and set the update to
none. -
Hello
I tryed to make a code with Labview to process and save a picture.
I have 2 cameras, connected to a CVS, and I want to save only the red, so I created a Labview code to extract only the red with Vision Assistant, and I add this to the exemple call "snap an save to file.vi".
But when I tried to run the program I have the folowwing message:
imgSessionAttribute.vi loaded with errors on the target and was closed.
LabVIEW: Failed to load shared library imaq.dll:imgSetAttributeFromVoidPtr:C. Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target.
LabVIEW: Failed to load shared library imaq.dll:imgGetAttribute:C. Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target.
What can I do for that?
I join the image of the program and the file
Thank you for your hepl
Attachments:
Snap and Save red.vi 74 KBHello mcatieau,
Can you run any example Vision-related code?
Can you try one of the simple "Grab" examples of the NI Example Finder (eg. "Grab.VI") to see if it works?
Did you always get this error with all Vision-code/applications?
I haven't personally seen/experienced this error before, so it might be that the error is (like mentioned in the message) due to some incorrectly installed software on the RT Target (CVS).
There are also a few things that I wouldn't expect one to try to run on a RT system.
The one that "bothered" me the most are the Dialog Boxes.
These should not be used on a RT system like CVS, but these will not cause the error you're seeing.
Do you have much experience with writing RT Applications (for the CVS)?
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo. -
How to create and save playlist using JMF?
Hello i m new to JMF. Can anyone tell me how to create and save a playlist of media files using JMF.
also how can i play .DAT files using JMF?
Does JMF supports AVI,Asf files?Hello i m new to JMF. Can anyone tell me how to create and save a playlist of media files using JMF.
also how can i play .DAT files using JMF?
Does JMF supports AVI,Asf files? -
How to display an image, which is stored in a database?
Hi All,
I would like to display an image with Web Dynpro.
I already know how to display an image which is stored in the path src/mimes/Components/...
But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
Thanks in advance!
Regards,
SilviaHallo John,
yes, you can use the Image UI element.
Further you have to create a String for the URL. Implement like as follows:
IWDCachedWebResource cachedResource = null;
String imgUrl = null;
WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
IWDModifiableBinaryType binaryType =
(IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
WDWebResourceType type = binaryType.getMimeType();
byte[] file = wdContext.currentXYElement().getPicDB();
if (file != null)
cachedResource = WDWebResource.getWebResource(file, type);
try
imgUrl = cachedResource.getURL();
catch (WDURLException e)
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
msgMgr.reportException(e.getLocalizedMessage(), true);
I hope it will help you.
Regards,
Silvia -
How to modify and save the data in the table control
how to modify and save the data in the table control
hi priya,
kindly go thru the code below.
PROCESS BEFORE OUTPUT.
MODULE status_9010.
LOOP WITH CONTROL tab_control.
MODULE move_data_to_table.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE user_cancel AT EXIT-COMMAND.
LOOP WITH CONTROL tab_control.
MODULE move_data_from_table.
ENDLOOP.
MODULE move_data_to_table OUTPUT.
This is to move the data from the internal table to *the table control
*zmpets_mode-modecode, zmpets_range-rangeid, *zmpets_servfacto-factor are field names of the table *control columns.
READ TABLE int_factor INDEX tab_control-current_line.
IF sy-subrc = 0.
zmpets_mode-modecode = int_factor-modecode.
zmpets_range-rangeid = int_factor-rangeid.
zmpets_servfacto-factor = int_factor-factor.
ENDIF.
ENDMODULE. " move_data_to_table OUTPUT
**********************************************8888
MODULE move_data_from_table INPUT.
*To move the data from the table control to internal *table 'INT_FACTOR'.
int_factor-chk = line.
int_factor-modecode = zmpets_mode-modecode.
int_factor-rangeid = zmpets_range-rangeid.
int_factor-factor = zmpets_servfacto-factor.
MODIFY int_factor INDEX tab_control-current_line.
IF sy-subrc NE 0.
APPEND int_factor.
CLEAR int_factor.
ENDIF.
ENDMODULE. " move_data_from_table INPUT
if this helps , kindly award points.
for any clarification just mail me.
regards,
Anversha.S
[email protected] -
How to render and save a file as windows media file or mp3?
I have worked in Sony Vegas 9 and I was hoping Adobe Premier Pro CC was similar--- but its not. I can't figure out how to render and save a file as a windows media or mp3 or in any format for that matter.
Search for exporting in the help file
Not all for PProCC, but The PPro/Encore tutorial list in message #3 http://forums.adobe.com/message/2276578 may also help, with more help in message #5
PS - rendering is the process of creating temporary files to aid in timeline playback, while exporting creates new files -
How to download and save a song on Firefox ?
when I want to download a song it goes through flash player only,plz tell me how to download and save a song on my phone using Firefox.
I will be thankful to you.long press on flash and select save audio
-
why cant i rotate and save a picture from iphone 4s in windows photo viewer windows 7? the error is cannot save because there is a problem with the photo properties. I can rotate and save screenshots
Windows do not repect the digital EXIF specification. Use a free viewer http://www.irfanview.net/ for Windows.
-
I Have a samsung smart TV and use TVO to record free to air programmes .
i would like to purchase from iTunes using my iPad , a TV series called outlander but do not know how to transfer and save the episodes to my TIVO
please helpMany videos in the iTunes store are protected so that they can only be viewed on Apple Devices signed into your iTunes account. If that is the case then your TiVo will not be able to read the files. If you know how to get a video file onto your TiVo from a flash drive, then just plug a flash drive into your Mac and drag one of the videos from inside the iTunes window onto the icon for the flash drive on your Desktop or in the left sidebar of a Finder window. That will copy the actual file onto the flash drive.
-
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
This page is a good starting point for learning about Flex and PHP communication:
http://www.adobe.com/devnet/flex/flex_php.html
Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/ -
How to connect .... MYSQL database via JSP
Hello,
I am not able to connect mysql database via JSP... everytime i try to connect the database i get the following error .....
"java.lang.NoClassDefFoundError: org/aspectj/lang/Signature" ..
my jsp code is ....
<%@ page import = "java.sql.*" %>
<%
Connection conn = null;
Statement smt = null;
ResultSet rs = null;
%>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase","username" ,"password");
smt = conn.createStatement();
rs = smt.executeQuery("select * from table");
out.println("output is "+ rs.getString("my field"));
rs.close();
%>
I have installed ............
jdk1.5.0_02
MySQL Server 4.1
there are two jar files .. i tried with both jar files ..
mysql-connector-java-3.1.8-bin.jar
mysql-connector-java-3.1.8-bin-g.jar
tomcat server 5.5.9
my path .... is
C:\Program Files\Java\jdk1.5.0_02\bin;C:\jakarta-tomcat-5.5.9\bin;C:\program files\mysql\mysql server 4.1\bin;
any help on this error ..at the earliest ..
... am worried ..bcoz my deadlines is getting closer .....
.. step by step .. procedure .. could be helpful ..
anilFind out the JAR which contains the class and add it
to WEB-INF/classes directory for your web application.WEB-INF/classes directory ..means ..C:\jakarta-tomcat-5.5.9\common\classes .. is that the one i need to keep my jar files ....???????????
well i have downloaded .. mysql database connector from the website "http://www.mysql.com/products/connector/j/ " .. and i have downloaded MySQL Connector/J 3.1..under which i have downloaded "Source and Binaries (zip)" ..
anil
Maybe you are looking for
-
Best method of turning white bg into transparent alpha
I often get product shots that are on a seamless white background. They sometimes have soft shadows which I find particularly hard to extract. I need to get transparency/alpha channel in the actual image for After Effects, so the Layer Style "blend i
-
How to read a non-oracle environment variable?
I have been trying to read a non-oracle environment variable using TOOL_ENV.GETVAR, and have come to understand that it doesn't work. Is there another function that can do what I want? I don't want to hardcode the directory the forms and reports must
-
For last one month I am facing problem in watching online videos on my iPod touch. It is opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.
-
Hi; Is it possible to have multiple workspace structures, and upon a setting (cmdline or otherwise) have jDev see a certain structure only. Thanks; -Nat [Let's ROLL!]
-
Need to extract all bill to accout details.
Hi Guys, Our business application Oracle has a lot of bill to account#s. I would like to extract all activated account#s according to our price list. Please let me know if we have any option in Oracle... Thanks in advance. :)