Picture Upload only works in IE

I created a picture upload routine to allow users to store their picture in the DB. The routine works fine in IE, but not in any other browsers. Am I missing something? Here is what I did:
Created item:
'P164_FILENAME' as file browse
onChange="javascript:xtractFile(this.value)";
In Page Header:
<script>
function xtractFile(data){
var m = data.match(/(.*)[\/\\]([^\/\\]+\.\w+)$/);
{ $x('P164_FILENAME').value = m[2]}
</script>
Created Process:
declare
get_pk stu_pic.pk_id%TYPE;
begin
get_pk := sis_express.get_sys_guid();
BEGIN
insert into "#OWNER#".stu_pic
(pk_id,fk_stu_base,student_picture,filename,mimetype,last_update_date,last_update_user)
select get_pk,
:P104_PK_ID,
blob_content,filename,mime_type,sysdate,:APP_USER
from wwv_flow_files
where filename = :P164_FILENAME;
EXCEPTION when dup_val_on_index then null;
END;
delete from wwv_flow_files
where filename = :P164_FILENAME;
end;
Created Item: 'P164_DISPLAY_PICTURE' with source of:
<img src='#OWNER#.SIS_express.display_student_picture?l_fk_student_id=&P104_PK_ID.' height=150 width=150 valign="top" align="center">
Created DB package to display picture:
PROCEDURE display_student_picture (l_fk_student_id in varchar2) IS
l_mime varchar2(255);
l_length number;
l_file_name varchar2(2000);
lob_loc BLOB;
BEGIN
SELECT mimetype, student_picture, filename,dbms_lob.getlength(student_picture)
INTO l_mime, lob_loc, l_file_name, l_length
FROM stu_pic
WHERE fk_stu_base = l_fk_student_id;
OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
HTP.p ('Content-length: ' || l_length);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (lob_loc);
EXCEPTION when NO_DATA_FOUND then null;
when OTHERS then null;
END display_student_picture;
Edited by: bobmagan on Apr 23, 2010 7:03 AM

I don't understand the previous post. Here's what seems to work--remove these tags: <p class="text"> </p>
Here's the code:
<br />
<br />
<span class="textbold">Appointments Online</span><br />
<br />
<a href="bbmd_doc_mailform.html">We are now accepting appointments online. Click here to schedule your next appointment.</a><br />
</p>
<p class="text"> </p>
<!-- InstanceEndEditable -->
<p> </p>
Remove the tags in red.

Similar Messages

  • File Upload, only work in server directory, PLS HELP!!

    hi all,
    my sevlet program work only if the source file is in the server where tomcat is installed. Can I upload the file in pc's local harddisc?
    The following is my code:
    import sun.net.ftp.*;
    import sun.net.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class xupload extends HttpServlet
         FtpClient ftpClient;
         public void closeConnect()
              try{ ftpClient.closeServer();
              catch (IOException ex) {System.out.println(ex);}
         public void doGet(HttpServletRequest req, HttpServletResponse res)
              String ftpip = req.getParameter("ftp");
              String ftpuser = req.getParameter("user");
              String ftppwd = req.getParameter("password");
              String source = req.getParameter("source");
              String target = req.getParameter("target");
              try{
                   PrintWriter out = res.getWriter();
                        FtpClient client = new FtpClient();
                        client.openServer(ftpip);
                        client.login(ftpuser, ftppwd);
                        client.binary();
                        out.println(ftppwd);
                        try {
                                  TelnetOutputStream os=client.put(target);
                                  java.io.File file_in=new java.io.File(source);
                                  out.println(file_in);
                                  FileInputStream is=new FileInputStream(file_in);
                                  byte[] bytes=new byte[1024];
                                  int c;
                                  while ((c=is.read(bytes))!=-1){ os.write(bytes,0,c); }
                                            is.close();
                                            os.close();
                        catch (IOException ex) {System.out.println(ex);}
                        client.closeServer();
              catch (Exception e) { System.out.println(e.getMessage()); }
         public void doPost(HttpServletRequest req, HttpServletResponse res)
    }

    java.io.File file_in=new java.io.File(source);This is just picking up a filename sent from the browser and loading it from the server's filesystem.
    You actually need to have the client send the file to the server. Libraries such as Jakarta Commons FileUpload make this easy. See:
    http://www.onjava.com/pub/a/onjava/2003/06/25/commons.html?page=last&x-order=date
    http://jakarta.apache.org/commons/fileupload/using.html

  • Ebay picture upload not working

    1.While posting a product for sale in ebay I cannot upload pictures. After hidding the icon nothing happens.
    2. Second issue: In some websites pdf files dont open. I have been trying to see my bank account info, (that is why i am not putting in the website here).
    3. Firefox reacts very slowly: If i switch between other programms (eg Thunderbird, or Word) Firefox sometimes doesnt want to come back for a long time or hangs up, finish..
    4. While in firefox, when I hit one of the menu icons, they unfold but without visible information. THat is also why I cant show any of the troubleshooting info from the help menu.
    All the above issues are since being upgraded to firefox 3.6.
    Thank you for help!
    == URL of affected sites ==
    http://

    Hello.
    Each of your issues may have different solutions, but I recommend you do this:
    - update any and all extensions and plugins you have installed in Firefox
    - remove/uninstall any and all extensions and plugins you don't need
    This alone should fix some of your issues. If it doesn't, clear the cache of your browser. If this doesn't fix the rest of your issues, run Firefox in safe mode to disable all extensions and plugins to see if you still have the same issues. If you don't, try disabling one extension or plugin at a time to find the faulty one(s). If safe mode also has these issues, try reinstalling Firefox. No data will be lost in the process, so don't be afraid of doing it. You can get the latest Firefox version at www.getfirefox.com

  • UploadedFile & https Only work first time upload ????

    I am using 10.1.3.4 Jdev. I use UploadedFile interface to upload files from local PC and ftp files to unix server. My "upload" web page works between my local PC and Unix server, but it only works first time upload file and ftp between
    https server (application server--weblogic 10.0) and Unix server. If I just use http without SSL and my codes work fine you can upload file as many times you want and ftp them to Unix server. I used FTP not sftp to transfer files from application server to unix server. Can anyone shed some lights on my head ???? Thx.

    Yes. I changed my code to SFT from ftp. it works. Thx. This URL for sftp: http://www.jcraft.com/jsch/ and is very good .
    Edited by: albertpi on Feb 11, 2010 8:05 AM
    Edited by: albertpi on Feb 11, 2010 8:05 AM

  • All Adjustment Brushes only work in the lower parts of my pictures. In the upper parts the tool view

    All Adjustment Brushes only work in the lower parts of my pictures. In the upper parts the tool view changes to a "normal" mouse pointer. (MBP, 10.8.5m, LR 5.3).
    Uwe

    Try: [/questions/790833]

  • I have a big project but when im going to add a new clip with sound and picture in picture its only the sound that works. Can someone please help me?

    I have a big project but when im going to add a new clip with sound and picture in picture its only the sound that works. Can someone please help me?

    Also, if you can't get them to work, what is the error message you are getting?
    Baron Samedi

  • I recently purchased the 16GB 5s. I didn't notice this before, but when I attempt to take a photo with the flash in the "on" position, the flash only works sporadically when I take a picture with the phone vertical. Anyone else with this problem?

    I recently purchased the 16GB 5s. I didn't notice this before, but when I attempt to take a photo with the flash in the "on" position, the flash only works sporadically when I take a picture with the phone vertical. Anyone else with this problem?

    I recently purchased the 16GB 5s. I didn't notice this before, but when I attempt to take a photo with the flash in the "on" position, the flash only works sporadically when I take a picture with the phone vertical. Anyone else with this problem?

  • My Airport Time Capsule only works when I turn off and turn on, but I think this may end up with the unit. What can this happening and how to solve?

    Time Capsule Airport
    Hello to all, good day, sorry my english google, but it is the tool I have at the moment. I'm having trouble with my Time Capsule Airport, I made all the settings according to the manual, but there has been a connection problem with my iMac. When I finish my work I turn off the imac and then again when they return to work and care, it can not connect to Time Capsule Airport, making it impossible to remove the files and make back up by Time Machine only works when I turn off and turn on the Airport Time Capsule , but I think this may end up with the unit. What can this happening and how to solve? Thank you.
    Olá a todos, bom dia, desculpe meu inglês google, mas é a ferramenta que tenho no momento. Estou tendo dificuldades com a minha Airport Time Capsule, fiz todas as configurações de acordo com o manual, mas tem existido um problema de conexão com meu iMac. Quando termino meus trabalhos desligo o imac e depois quando retorno pra trabalhar novamente e ligo, ele não se conecta a Airport Time Capsule, impossibilitando retirar os arquivos e fazer o back-up pelo Time Machine, só funciona quando desligo e ligo a Airport Time Capsule, mas acho que isso pode acabar com o aparelho. O que pode esta acontecendo e como resolver? Obrigado.

    This is easier to do with pictures perhaps.. since we do not share a common language and machine translation leaves a lot to be desired.
    In the airport utility bring up your Time Capsule.
    Simply post the screenshots here.
    So here is mine.
    Click on the Edit button and give us the Internet and Wireless and Network tab..
    eg.
    Please also make sure you are set to ipv6 in your wireless or ethernet .. whichever is used.. and do tell which.
    This is wifi in your computer.
    The following are important..
    DO not use long names with spaces and non-alphanumeric names.
    Use short names, no spaces and pure alphanumeric.
    eg TC name. TCgen5
    Wireless name TCwifi
    Use WPA2 Personal security with 10-20 character pure alphanumeric password.
    read apple instructions to help with TM and TC.. they did finally admit it has issues in Mavericks.
    OS X Mavericks: Time Machine problems
    Mount the TC manually in finder.
    AFP://TCgen5.local
    When asked for the password .. that is the disk access password and save it in the keychain.
    Reset Time Machine
    See A4 here. http://pondini.org/TM/Troubleshooting.html

  • HT201077 I shared a photo stream of 174 pictures but only 20 are showing up in the folder that was sent out. Any solutions?

    I shared a photo stream of 174 pictures but only 20 are showing up in the folder that was sent out. Any solutions?
    Help much appreciated!

    Upload to the shared Photo Streams can take a long time. Sometimes hours. Did the photos appear by now in the stream?
    Is the iCloud status o.k. ( iCloud Support webpage)?
    Did you share from your mac or from a mobile device? And where are you checking the stream? On your Mac? If you are uploading from a mobile device - is the battery fully charged? Uploading to the Photo Stream is the first that will be suspended, if the device needs charging.
    have ypu exceeded any limits? Daily hourly upload rates? http://support.apple.com/kb/HT4858
    Regards
    Léonie

  • Is there anyway to have an 11 inch mac air connected to an external monitor with lid closed and still be able to see content. I have a wireless ketboard and mouse and have tried everything. Only works when plugged in.

    Is there anyway to have an 11 inch mac air connected to an external monitor with lid closed and still be able to see content. I have a wireless ketboard and mouse and have tried everything. Only works when plugged in.

    You are referring to a feature called Clamshell Mode, please read Clamshell Mode setup for instructions.
    BTW when posting when you use generalities such as "have tried everything" this tells us nothing. When posting please be specific and try to paint a complete picture. It just makes things easier for those trying to help you.

  • My iphone says i have 6.1gb photos in photo library. over 1000 pictures. i only have 60 how do i dlete these?

    my iphone says i have 6.1gb of photos on my photo library, 1000 pictures. i only have 60. how do i see and delete these pictures?

    On iO8 8?  If you have already emptied the Recently Deleted album,and still have phantom photos,  check this post:
    Have a look at this solution:  There are apparently more users suffering from phantom photos that cannot be deleted:  Changing the date makes the photos in "Recently deleted" visible again:
    txforeverMar 5, 2015 6:38 PM Re: More photos in settings than photos app shows
    Re: More photos in settings than photos app showsin response to morganfaith6
    I managed to get rid of the phantom usage. Restoring iPhone and resetting the phone settings/data do not work for me.
    I had to move the Date on my phone earlier by 1,2,3 months and found the phantom photos in the Recently Deleted Folder. Next, I deleted the photos manually from the Recently Deleted Folder and the usage got freed up from my iPhone.

  • 3D picture control only words as administrator

    I am using Labview 8.6 and trying to use a 3D picture control but am having a strange issue.
    The problem is that the 3D control only works if I am using the administrator account.  If I am using a limited account and I drop a 3D picture control on the FP nothing displays.  Additionally, the picture box behaves badly.  I either see through to the desktop background or get multiple overlapping bits of whatever is on the FP.  I tried launching Labview8.6 "as administrator" but it still doesn't work.  Only if I run Labview under the Administrator account does it work.
    Any solutions?

    Hey chiraldude, 
    What video driver are you using? You can find this out by going to the control panel, selecting device manager, and looking under display adapters (my computer uses NVIDIA, as you can see in the attached Device Manager screenshot). With this information, I can make some better suggestions about what you need to do to have more control when Aero is off. 
    cheers!
    ~kgarrett
    Applications Engineer
    National Instruments
    Attachments:
    Device Manager.png ‏33 KB

  • Audio only works for Netflix

    Configuration:
    Apple TV (3rd Generation)
    Denon Receiver
    Samsung LED TV
    Connected via HDMI
    Sound works fine for Netflix but nothing else works - Youtube, Inetrnet Radio, Podcast, Vimeo, etc. The picture works fine but no audio. Downloaded and installed the most recent firmware. Any ideas?

    Sound works fine for Netflix but nothing else works - Youtube, Inetrnet Radio, Podcast, Vimeo, etc. The picture works fine but no audio. Downloaded and installed the most recent firmware. Any ideas?
    I just purchased the new apple 3rd generation. During set-up, I downloaded the latest up-date. I have the same trouble... 'Audio only works for Netflix'. Any fixes?

  • Picture Files only display in the Brows

    Dear all,
    During the Brows I require to display the Picture files only.
    Get_File_Name('C:\',Null,'Picture files only(*.JPG,*.BMP,*.TIFF) |*.JPG||*.BMP||*.TIFF|',null,open_file,true);
    It not working.
    Please guidance me.
    Regards,
    C V S

    Hi
    Declare
         fname varchar2(100);
    Begin     
    fname := get_file_name(
    directory_name=>'C:\',
    file_name=>NULL,
    file_filter=>'picture file only(*.jpg,*.Bmp,*.Tiff)|*.bmp|*.Tiff|',
    message=>null,
    dialog_type=>open_file,
    select_file=>TRUE);
    end;use the above code.
    kanish

  • Document Drag Drop only works in draft

    Hello,
    When you attempt to drag and drop a document into a document app it simply says "Uploading" but never does anything. After testing a few things I've discovered that it only works if the page is not published. This is on a published site, not a
    team site. If I check out the page and leave it in draft I can upload documents by dragging and dropping.
    I have found a few threads with people having the same issues but no resolutions. Anyone have a work around or perhaps a savvy coder who knows a bit of code to toss in to make this function properly?
    Thanks!

    I can reproduce your problem in my dev box. I think it's kind of conflicting situation. You can only change publishing page when it's in edit mode (or checked out or in draft mode) and that's the behaviour your are getting now. On the contrary, Documents
    webpart should allow you to upload documents if you have permission. 
    However, maybe by design (or you can call it SharePoint bug) when documents webpart is placed inside publishing page, publishing page behaviour overrides Documents webpart - so you can't change publishing page until you goes to edit mode. However, if you
    use webpart page, you can drag-n-drop without any issue.
    So as far as I understand there's no solution for this unless you use webpart page.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

Maybe you are looking for

  • Safari wouldn't open and now I can't reinstall it

    Safari wouldn't open (i just bounced once then stopped) so I ended up deleting it. I then downlaoded safari from the apple website and the computer tells me that I can't install it. it says that this system can't use this software. I then used disk u

  • Ipod isn't recognized by itunes after trying everything

    i've searched the apple website high and low to find a solution to my problem with itunes 7. i have a 60GB 5th gen and no matter how many times i have re-installed, updated and did the 5 r's my ipod will not show up in itunes after i close out and op

  • IGS graph with data table

    Hi all, I'd like to create an image of a graph with a data table below that contains the data displayed by the graph.  I know this is possible as of SP 8 of IGS 6.40, but I can't find anywhere any documentation on how I can pass this on to the Chart

  • Can I get a backlit keyboard for my Hp Pavilion M6-1054sa?

    Hi I just got this laptop and sadly it didn't come with a backlit keyboard. I was wondering if it's possible to replace my current keyboard with a backlit? If this is possible, would you know where I could buy the parts needed and how to install them

  • XPath text truncating chars

    Hi all, I have the following XML stored in a table. The column that this xml is stored in is of type XMLTYPE. CREATE TABLE CM_WRK_RAW_TAG PACKET_ID RAW(16) NOT NULL, ORIGIN_ID RAW(16) NOT NULL, RAW_TAG_XML       SYS.XMLTYPE                 NOT NULL,