Will you give me an example in how to "upload" an image to database?
For example if the image is c:\image1.jpg
what are the steps to save it in the database instead of being accessed thru a file?
an example is needed thanks.
Yes. You would create 2 procedures, one to upload the
image into the DB, one to display the images. The image For a working example, see http://otn.oracle.com/sample_code/products/intermedia/htdocs/imedia_plsqlgw_sample/imedia_plsqlgw_readme.htm
For java servlets and jsps see: http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/imedia_code_wizard.html .
Similar Messages
-
Can you give me an example of using blacklist from in mail settings to block unwanted mail?
I want to use serveradmin settings mail command line to set a list of domains/servers I do not want to receive emails from. Can you give me an example on how to set this in ML server?
I managed to set the domains using the command line serveradmin but it is not working. This is a list of domains I have set so far:
mail:postfix:blacklist_from:_array_index:0 = "bounces.servidordeenvio.com"
mail:postfix:blacklist_from:_array_index:1 = "reiserver50.info"
mail:postfix:blacklist_from:_array_index:2 = "vps5.central-adworks.com.br"
mail:postfix:blacklist_from:_array_index:3 = "emailTrocar.com.br"
mail:postfix:blacklist_from:_array_index:4 = "geeklemail21.com.br"
mail:postfix:blacklist_from:_array_index:5 = "produtosnotaveis.org"
But I still keep receiving emails from those domains with virus (which are intercepted by the virus filtering) and receiving alert messages from the server app suggesting me to include these domains in a blacklist.
Thanks for your help..Thank you.
I tried it out and did not work either but I finally found a way to add multiple entries. I read on the serveradmin man page that if you had multiple values you should better off use a file for input.
I did create a plain file with as many as needed entries:
mail:postfix:blacklist_from:_array_index:0 = "*@xxx.com"
mail:postfix:blacklist_from:_array_index:1 = "*@xxxx.com"
saved as blacklist then I issued the command:
sudo serveradmin settings < blacklist
This solved the setting of multiple values. I will monitor if it will really block the spam from the locations.
Thanks again for your help and interest. -
Would you please give me an example about how to do an enhancement withPM01
Hi all :
Would you pleaes give me an example about how to do an enhancement withPM01 to HR transactions?
thanks in advance.
Best regards
FrankHi,
You can perform PA Infotype Enhancement with the transaction code PM01.
Use the link below for Your reference.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
For defaulting the values to the infotype fields you have to make use of the features ( PE03 T code )
Can you elobarate your requirement..
For more help refer the following links.
http://help.sap.com/saphelp_47x200/helpdata/en/1e/728d281d5e11d289d30000e82158f1/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/f7/2fe034ee251f34e10000009b38f83b/frameset.htm
Regards,
Jagadish -
Did anyone ever do wedding invitations in pages if so could you give me some info on how to do this
did anyone ever do wedding invitations in pages if so could you give me some info on how to do this
Why did you pay for Pages 5? Nearly everyone gets it for free and if you have iWork '09 you can upgrade for free, all 3 apps.
For the layout of a Wedding Invitation, either buy a set of templates from the Mac App Store or places like Jumsoft, or look for a Word template you like from the Internet and open that in Pages.
A wedding invitation just consists of text and some graphics on a specified sheet of paper. Usually quality paper you can buy precut and which may be folded to purpose. Just position the text and the graphics where you want on the page, do a few test prints to see if you like it and everything is OK, then reproduce.
If you want to merge names and addresses from either Contacts or a Numbers spreadsheet, I repeat you can not do this in Pages 5.
You need Pages '09. You can buy iWork '09 which has Pages, Numbers and Keynote '09 in it for US$26.99 from Amazon.
Or do it with LibreOffice [free].
Peter -
How to upload an image in jsp page
hi,
I want to upload an image file with my jsp page, but i cannot do it,
I have used Jakarta common file upload for this & i have also read following file. But my code isnot working properly? Can you give me any example how to upload an image & how to display it?
Can u give me any source code? Please help me.
http://jakarta.apache.org/commons/fileupload/using.htmlwith regards
BinaHi,
But after writing the following code i have got following error? What's the problem of this code? please help me?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<%@ page import="org.apache.commons.fileupload.*" %>
<%@ page import ="java.util.*" %>
<%@ page import ="java.io.*" %>
</head>
<body>
<%
boolean isMultipart = FileUpload.isMultipartContent(request);
DiskFileUpload upload = new DiskFileUpload();
List items = upload.parseRequest(request);
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
//ring name= request.getParameter("")
%>
<%= name %>:<%= value %>
<%
} else {
%>
<%
InputStream stream = item.getInputStream();
OutputStream bos =
new FileOutputStream(getServletContext().getRealPath("/images"+"/"+ item.getName()));
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
bos.write(buffer, 0, bytesRead);
bos.close();
stream.close();
item.delete();
%>
</body>
</html>Error is:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
FileUpload cannot be resolved
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
DiskFileUpload cannot be resolved to a type
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
DiskFileUpload cannot be resolved to a type
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
FileItem cannot be resolved to a type
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
FileItem cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
FileUpload cannot be resolved
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
DiskFileUpload cannot be resolved to a type
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
DiskFileUpload cannot be resolved to a type
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
FileItem cannot be resolved to a type
An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
Generated servlet error:
FileItem cannot be resolved to a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Please help me.
With regards
Bina -
How to upload an image to EBS file server (Not store in database) with OAF?
Dear all,
I can upload an image into database with blob type. But I want to know how to upload an image to EBS file server. I try to search the forum but I cannot find the solution I want.
Anybody can reallize it? Please give me some advice or idea?
Thanks.
KennyKenny,
Framework doesn't provide the option of storing the images as files. You can write a javascript to open a popup and provide a standard HTML file upload component which will save the file on specified location.
--Shiv -
How to Upload Mutilple Images in content repository?
Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd be displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
SureshSuresh, your html specifies an image at resources/images/privacy.gif - is that
image in your repository at the correct relative position to where yout html is?
Your html and repository structure must match. So if the html you posted is at
/BEA Repository/foo.html
then privacy.gif must be at /BEA Repository/resources/images/privacy.gif
James
"Suresh" <[email protected]> wrote:
>
>
>
Hi James
Here i have attached my sample html and image
My Repository Structure is as follows :
Virtual Content Repository
BEA Repository
MainImage type image
Privacy type i created
----StartDate
----EndDate
----File Upload
My HTML
<HTML>
<HEAD>
<TITLE> New Document </title>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</head>
<BODY>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="norBold"><img src="resources/images/privacy.gif"
width="123"
height="73">Privacy
Policy</td>
</tr>
<tr>
<td class="formHeadBack" height="19"><b> Privacy Policy</b></td>
</tr>
</body>
</html>
and
one image
Thanks in Adv
Suresh
"James Owen" <reply.to@newsgroup> wrote:
Suresh, how is your content structured and what does your html looklike?
If you
could post examples, that would be helpful.
thanks,
James
"suresh" <[email protected]> wrote:
Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd
be
displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the
images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
Suresh -
How to upload binary file in database?
Using servlets..how to upload binary file into database...
How to get the data of file in servlet...
Please reply...i'm unable to find exact code...that i want..You need to do two separate parts: accept the file from a HTTP multi-part POST and then stream it into a BLOB on the database. To do the former, download Jakarta Commons FileUpload. There is extensive documentation on how to write a simple handler for the upload. You then need to send the data to a BLOB. The specifics vary from database to database but generally you will insert or update a row with an empty blob, get a reference to the blob, pipe the data and then commit.
If you do a quick forum search, this question has been asked (and answered) dozens of times. Some of the replies may even have code for you. Best of luck.
- Saish -
How to store an image into database table
Hi
Can anyone tell me the way, how to store an image into database table.Hello,
May be this thread will help you in your requirement.
[FM for uploading Image to SAP;
Thanks,
Jayant -
How to upload a image or flash file as blob object in a table.
How to upload a image or flash file as blob object in a table.
What are all the possible ways we can do it.Searching the forum (or google) would be my first choice, as this question pops up every now and then.
Next without knowledge of your environment (jdev version and technology stack) it's hard to give a profound answer.
All I can say is that it's possible.
Timo -
How to place an image in database and how to retrieve and display it in the front end
how to place an image in database and how to retrieve and display it in the front end
and to place an image in database and retrieve the image from database using xml
please,help me out.Create a table with a Long RAW Datatype column for storing the Image Column Data.
Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
A save on the form saves the image in the Image item in the long raw column. -
How to upload background image in Theme Editor
Hi
I want upload an image to theme
I try by the theme edit i'ts not work
I try by Edit "Right to Left" Theme Images
I don't find the button "Upload"
please Help!!!!
How to upload background image in Theme Editor without to entry to the server
Regards
YossiHi
Thank you for response
I want upload to TransparentContainer Image in background
I change the design to Plain
I Try Upload by the browse in the theme
but The image is not upload
even if i delete the chace serever
i'ts not working -
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS
HI
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMSHi,
goto se78 -> in the menubar click graphic and import to select ur images from ur system .. then click transport button .. it automatically gets into the smartform graphic image list.. then get into transaction smartform and use the image u imported into that..
U can import anykind of image which u have stored in ur pc through se78..
Regards,
Priya. -
How to upload the image and diplay the image in the browser using jsp
How to upload the image and diplay the image in the browser using jsp
thanks
shani'll suggest looking for sample code or tutorial with a relevant query in google, which as far more time than us to answer this type of reccurent question
-
How to upload a file to database in Apex 4.2.2?
How to upload a file to database in Apex 4.2.2 in Existing Application? Also How to view the uploaded file within this application?
Any help to his question is very appreciated?
Thanks,
Prak.980835 wrote:
Please update your forum profile with a real handle instead of "980835".
Actually we want to upload the file to our own table and retrive from it as well. Is it possible to see the file of person whom we are pulling?
This is covered in the documentation: About BLOB Support in Forms and Reports. There's also a tutorial in the Oracle Learning Library.
Maybe you are looking for
-
Can I use my old 2006 iMac as a second display for my new iMac?
Can I use my rusty old 2006 iMac as a second display for my new 2012 iMac? How do I keep one computer from trying to take over the other one? thank you.
-
How do I add a Related Link to a page?
I tried asking this on the Spry forum, but the only answer I got was from someone who never used Dreamweaver, so I'll try here... I have 5 main pages on my site. When I bring up four of them in Dreamweaver, all the related files show up in the Re
-
Videos no longer play in itunes 12
Upon downloading the new itunes 12, videos in my library no longer play on my computer. The second screen come up and looks like it wants to start but stays black. The video play button ison bu the time toggle doesn't move. Any ideas?
-
Regarding: OLAP Reporting tools
hi all Is there any OLAP Reporting tool avaiable in Oracle. Please provide me the more information regarding it. Thank you s
-
Reports erroring out in one environment and working fine in another
Hello, We are in the process of merging rpds across our organization to have a Master rpd. I have merged the rpd and checked for consistency and everything is fine. I am testing reports but one particular SA reports are erroring out. So I took the co