How to upload file located on the network
I used following API successfully upload file located on
database machine. I
got error when upload file located on network. I run this
as "Portal30" user
which has DBA priviledges.
I used code like this.
result:=wwsbr_api.add_item(p_caid=>53,
p_folder_id =>4487,
p_display_name => 'Test',
p_type_id => wwsbr_api.ITEM_TYPE_FILE,
p_type_caid => wwsbr_api.SHARED_OBJECTS,
p_region_id =>5,
-- these are not working
p_file_filename=>'//nt2/vol2/common/test.pdf'
p_file_filename=>'///nt2/vol2/common/test.pdf'
p_file_filename=>'S:/common/test.pdf'
-- this works
p_file_filename=>'c:/test.pdf'
Errors:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.NullPointer Exception
ORA-06512: at "PORTAL30.WWSBR_API",line 24
ORA-06512: at "PORTAL30.WWSBR_API",line 277
PS: we tries run Oracle as a privileged user other than System
user. it won't help. Am I missing something here. I am new on
the network problem. How I can verify the privileged user access
the network.
we have portal 3.0.9.8.1 running on Windows 2000
Thanks for the direction. I can upload same file through Oracle
Portal "Add Item" user Interface. So I assume file is visible to
the database. Notice the Portal uses wwv_additem.additem and
wwv_add_wizard.edititem to upload file. Do they eventually use
wwsbr_api.add_item and wwsbr_api.add_item_post_upload? What is
syntax of reference file on remote drive?
Thanks
Linda
Similar Messages
-
How to upload files/images to the database from a form.
I'm making a custom user profile form.
The users can update their profile in this form.
I cannot use the standard profile form, because the customer got very specific
demands about the context of the profile form.
In this custom profile form the user must be able to upload an image
from their hard disk(just like in the standard profile form).
I've got the following questions about uploading pictures:
- How do I make a button to show the explorer window.
- how do I get the chooses file-name in a field.
- how do I get the new file in the database.
- how do I get rid of an old file in the database.
- how do I get the image on the form.
Or is there a special portal way to upload images/files in a form.
Does anyone have a clue?
regards
arnyHi,
Regular Portal forms will support upload of images/documents to the database. Just identify your column as a blob, and the 'Browse' button will automatically show up in the form and the users will get to choose the file they want to upload from their desktop.
The thing is, I haven't been able to figure out how to get that document/image back out of the database (e.g. in a report), once it's put in. Maybe someone else can answer that. -
How to upload file from Application Server?
Dear Friends,
How to upload file from Application Server?
Plz. with example...
Regards,
Dharmeshhi,
check the code for upload from application server.
tables: kna1.
types: begin of s_file,
customer type kna1-kunnr,
country type kna1-land1,
name type kna1-name1,
region type kna1-regio,
end of s_file.
*--Internal tables
data: it_file type s_file occurs 0 with header line.
*-- Selection screen
selection-screen: begin of block b1 with frame title text-001.
parameter: p_file type rlgrap-filename default 'C:/customer.txt'
obligatory.
selection-screen: end of block b1.
*-- At selection screen
at selection-screen on value-request for p_file.
perform file_help using p_file.
*-- Process File
start-of-selection.
perform upload_file using p_file.
*-- write File data to o/p
end-of-selection.
perform write_data.
*& Form file_help
form file_help using p_p_file.
data: l_filepath type ibipparms-path.
call function 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
importing
file_name = l_filepath
p_p_file = l_filepath.
endform. " file_help
*& Form upload_file
form upload_file using p_p_file.
call function 'WS_UPLOAD'
exporting
filename = p_p_file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = it_file
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
others = 11
if sy-subrc <> 0.
message i001.
endif.
endform. " upload_file
*& Form write_data
form write_data .
loop at it_file.
write:/ it_file-customer, it_file-country, it_file-name,
it_file-region.
endloop.
endform.
regards,
keerthi. -
How to upload file in a server
Hi,
How to upload file to server through reporting. Plz guide me and what would be the probable code.
ThanksHi,
Try this Report Program.
*& Report ZUPLOADTAB *
*& Example of Uploading tab delimited file *
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
Regards,
Padmam. -
How to upload file to server physical directory
Dear Sir,
My Software Details:
Oracle9i Release 1
Oracle9iAS 1.0.2.2.2
Solaris 8
I have a web application developed using PL/SQL.
How do i upload a file from user to a server physical directory through Oracle9iAS without storing in database?
I can do this if file is uploaded to a 9ias upload table.
But i'm looking for solution on uploading file straight to the physical server directory.
Please advise.
Thanks.
Regards,
Jap Boon ChurnHi Jap,
You won't be able to do this with modplsql if that is what you are asking. modplsql only uploads file into the database.
With that said, however, you can write your own CGI/Servlet/Perl program that does the uploading of files into the server physical directory. In your program, you will need to handle HTTP POST requests so that you can parse out the file contents and write it out onto the file system.
I am sure there is already some CGI/Servlet/Perl program out there that does this. If you search on Google, you should be able to find some and modify it to your needs. Hope that helps. Thanks.
Eric. -
How to upload file and show it's progress
hi
i want to upload files and show the progress of the upload
process how?
thanks in advance.Hey,
I attached a sample I did in Flash 8 using PHP. Hope it
helps.
http://www.cybercussion.com/vault/fileuploading.zip -
Open file located in the HTMLResources with adobeDPS.dialogService.open()
Is it possible to open file located in the HTMLResources with adobeDPS.dialogService.open()?
Method adobeDPS.dialogService.open('http://www.google.com/') - works well, but it not support relative URLs
I can make button in InDesign layout with url "HTMLResources/faq.html",
but how to make HTML-button in web-overlay that opens file from HTMLResources in slideup webview?
ThanksHi, Why do you need to use HTMLResources?
You can try use all HTML files (faq.html too) in web content.
Do you want a lightbox effect, than your webcontent frame need to be the same size of page
I believe that the results is quite similar.
regards -
Clicking the first file, holding down shift and clicking the last file doesn't work. I've tried all manner of command, control, shift combos without success. This one-at-a-time attachment problem also happens in web mail. Are these two issues related? Thanks for non-techie solutions for both issues. I have Safari 5.0.6 (5533.22.3) and Leopard.
Thanks for your response. I do have javascript turned on (not java). To answer your question,
I was trying to upload 3 jpgs to the submissions page of a visual arts website. I could only highlight one jpg at a time in the "Choose File" option, and then the "Upload File" button of the submissions page would not respond.
It's an ongoing problem with this site (I'm the only one with this issue and there are a lot of submissions). I have to send the images as email attachements to the administrator of the site. When doing this via webmail, I still the one attachment at a time problem, but the images get to the administrator. Thanks for helping. -
Error while accessing a file located in the server from JSP
Hi
I am having problem while accessing the file located in the server from a JSP
page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
The same code is working if the jsp placd under defaultwebApp directory and not
working if i create a war and deploy the same.
I am using weblogic server 7.0 trail version.I am setting the context path also.
Can any help me in this regard.
Thank And Regards
Anand Mohan
Hi
Thank you.Is there a way to read a file which is existing in the war file.
Regards
Anand Mohan
"Wenjin Zhang" <[email protected]> wrote:
>
>In Weblogic, if your files are archived in a WAR, you cannot get an entry
>as individual
>file since it is only bytes in a large archive file. So getRealPath will
>give
>you null result. If you only want the path, try to use other getXXXPath,
>getURL,
>or getURI method. If you want to read the content, use getResource.
>
>
>"Anand" <[email protected]> wrote:
>>
>>Hi
>>I am having problem while accessing the file located in the server from
>>a JSP
>>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
>>
>>The same code is working if the jsp placd under defaultwebApp directory
>>and not
>>working if i create a war and deploy the same.
>>
>>I am using weblogic server 7.0 trail version.I am setting the context
>>path also.
>>
>>Can any help me in this regard.
>>
>>Thank And Regards
>>
>>Anand Mohan
>
-
I currently have a D-Link DI-604 broadband router with windows computers. How can I add wifi to the network for use with ipad? Can I use AirPort Express?
Yes. You can directly connect an 802.11n AirPort Express Base Station (AXn) using an Ethernet cable. The AXn would then just need to be configured as a bridge to allow the D-Link to continue to provide both NAT & DHCP services for all network clients connected to either router.
In this configuration, the AXn would broadcast a wireless network for your wireless network clients to connect to. -
a tech company just set up a wifi network in my house and does not use my existing TC; how do I get it in the network to serve as backup for my iMac? (I don't need it as a wifi access point anymore) thanks
Just bridge the TC and plug it by ethernet into the main router.
Bridge in v5 airport utility.
In v6 it is under network.. change it from DHCP and NAT to Off bridge mode.
Turn off the wireless. -
HI,
I am getting this error frequently.. any recomendations :
Executed as user: DB0\sqlservices. Processing database: dbin [SQLSTATE 01000] (Message 0)
Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008)
Processing database: DB_ [SQLSTATE 01000] (Message 0) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528)
Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008)
Processing database: DB [SQLSTATE 01000] (Message 0)
DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528)
Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. [SQLSTATE 42000] (Error 3023)
Processing database: DB_AC [SQLSTATE 01000] (Error 0)
[SQLSTATE 01000] (Error 0) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Error 2528).
The step failed.
Please give any receomendations to avoid this error in future :
Yangamuni Prasad M
Hi Yangamuni,
Are there any progress?
Please have a look on the below threads with the similar issues as yours:
http://www.sqlservercentral.com/Forums/Topic652579-146-1.aspx
http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/ae4db890-c15e-44de-a2af-e85c04260331
The solution is change the recovery mode to SIMPLE, shrink log files and then change to the FULL recovery mode.
Thanks,
Weilin Qiao
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread. -
How to upload file in webdynpro abap alv
Hello Friends,
how to upload file in webdynpro abap alv
Regards
Narendra
Moderator message: please search for available information, post in correct "Web Dynpro ABAP" forum if still required.
Edited by: Thomas Zloch on Jun 6, 2011 11:55 AMHi Narendra,
You ahve to search before posting. This discussed many times.
You need to use file upload ui element to upload data. and display in alv.
Please go thorugh this..
http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
Re: Upload .xls file in WDABAP
http://forums.sdn.sap.com/click.jspa?searchID=72307893&messageID=5425671
Cheers,
Kris. -
How to upload files to dashboard obiee 11g
hi,
can anyone explain how to upload files to obiee dashboard.
thanks in advance..refer this link .
http://total-bi.com/2011/02/external-files-obiee-dashboard/ -
HT1766 where is the Itunes backup file located in the computer ?
where is the Itunes backup file located in the computer?
Read here:
http://support.apple.com/kb/ht4946
Maybe you are looking for
-
I recently bought a Time Capsule and sucessfully set it up in accordance with the instruction book. The home network and guest network seem to work fine but my MacBook cannot find the Time Capsule wirelessley. Initially I set up the time capsule con
-
Pass parameter to report paramater form from a form
I defined parameter in a form. I am trying to pass the parameters to a report's parameter form. Is there any way to accomplish this? Thank you!
-
I Need Help For Setting Up A New Account
So, obviously in Mail, I have my .Mac Account. I would also like to add my MSN hotmail account. There are only a couple of issues. I can't figure out if the hotmail account is POP, IMAP, or Exchange. And on top of that, I don't know what to put after
-
Need download link for WRT350N firmware
I have been looking for the latest official firmware for the WRT350N, but when I go to Linksys's official page located here: http://support.linksys.com/en-us/support/routers/WRT350N There is no official download link for any model there. Is there any
-
Security Enclosure for Time Capsule?
I'm concerned about losing my iMac to theft, so I back it up on a Time Capsule. The only problem is that the TC is only slightly less prone to being stolen than the iMac, since I hide it under my desk. I've looked around for some kind of secure enclo