Uploading and unzipping files on to itouch
Hi all
Does anyone know of a way to upload a zipped folder, full of html files to the itouch. This is a project and the users may not have an interent connection.
Thanks
There are apps that will let you drag and drop files from the computer to the iPad. I have an app called File Manager Folder + that will let you drag and top files and also transfer them via WiFi. It's a pretty useful app actually.
Check it out here.
https://itunes.apple.com/us/app/file-manager-folder-plus/id484856077?mt=8
You also need to download an app on your computer, which is free, in order for this to work.
Similar Messages
-
Uploading and downloading files from a web app (Urgent!!)
Hi everyone:
I'm developing an application in PL/SQL to upload and download files from an HTML webpage. I congured the document table and the parameters necessary in the DAD of my application.
when I upload the file using my webpage that file info is automatically uploaded to the doc table. This is as far as I have gotten.
I need to do the following:
- Place the uploaded file into a column in another table in my database as part of a text message (think of it as an email message), and delete the file from the doc table (as this is thought to be a temp table that holds the file when uploaded from my webpage)
- Retreive the file so that it can be downloaded from another web page.
The file can be a PDF, WORD DOC, etc...
I now that I can do this with InterMedia but I haven't figured out how :(
Can anyone please point me to an example or some documentation that can guide me through the process.
DB VERSION: 8.1.7
IAS VERSION: 1.0.2.2
Thanks,
Carlos AbarcaThe idea was for you to look at the code and get an idea of how to access the BLOB in the document table. IF you look at the procedure
insert_new_photo( new_description IN VARCHAR2,
new_location IN VARCHAR,
new_photo IN VARCHAR2 )
It shows how to access the blob that is stored in the document table. You can then copy this blob to your own table using the DBMS_LOB package.
Hope this helps,
Larry -
Upload and download file in jdev adf
hi,
i'm still looking for upload and downlaod files in jdev adf
any idea sir
TQHi spnolin,
Can u tell me how to download a file from server, so that the client can get the file. such as click on the link or button, and the pop up windows (save as) appear?
Please tell me in details. if possible provide the example code as well and some explanations.
Thx in advance
FELIX -
Upload and Copy files using PLSQL.
Hi All,
Can UTL package can be used to upload any local data file to server?
Or is there any in-built package which can be used to upload files to servers and copy files to another directory?
Thanks in advance.Avishek wrote:
Thanks.
But i've a requirement to upload and copy files from one directory to another.
How can i approach?Realize we only know what you post & so far you have posted NOTHING useful.
How exactly does end user interact with the DB?
3-tier application?
EndUser<=>browser<=>WebServer<=>ApplicationServer<=>DatabaseServer
What OS name & version for client system?
Handle: Avishek
Email: [email protected]
Status Level: Newbie (5)
Registered: Jun 3, 2008
Total Posts: 68
Total Questions: 27 (16 unresolved) -
Upload and Download Files in an Application
hi,
I'm use Application Express 2.1.0.00.39 and the procedure " How to Upload and Download Files in an Application" :
http://download-west.oracle.com/docs/html/B16376_01/up_dn_files.htm#sthref177
I do not find the following tables or view:
HTMLDB_APPLICATION_FILES or wwv_flow_file_objects$.
which it is my error?
thanks.
LuigiThe documentation was for version 2.2. I could not find a 2.0 version of this howto:
http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CIHCFCHF
However, I did find the correct name of the view for my version, HTMLDB_APPLICATION_FILES
After following the instructions in the above-mentioned "how to" (uploading and downloading files), I am a getting a html 403 error (You are not authorized to view this page) when I try to download from my custom table using the procedure specified in the howto.
I've granted execute on the procedure to public only (as specified in the doco).
err nvm. This has already been answered,
http://download-west.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/adm_wrkspc.htm#BEJCGJFJ.
Message was edited by:
user507810 -
Uploading and Downloading files in an Applicaiton
I was able to successfully upload and download files stored in the database through Application Express by following the how to instructions at -->
http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CJAHDJDA
QUESTION: Is it possible to retrieve the downloaded file without granting execute to the download procedure? My DBA is requesting that I remove the procedures public grant, but when I do, I can no longer download the file.As long as the Oracle username with the connection has 'execute' on the package 'public' should not need execute. Though I do not use the tools in question so there may be factors I am unaware of, but Oracle wise the connected session needs execute. If can get it from public, a role, or a direct grant. I just say use role based grants or direct grants rather than a public grant to get the privilege.
HTH -- Mark D Powell -- -
Internal Server Error when trying to upload and manage files
The instructor was experiencing this difficulty on Tuesday 1/13, after the notice was closed. I just
went into their site again(1/14/09 2:48pm), launched iTunes U and received the same error after clicking on 'Upload And Manage Files' in their iTunes U page.
I was able to reproduce the same error on our iTunes U site.
https://deimos.apple.com/WebObjects/Core.woa/EditFiles/indiana.eduI have only found two that work correctly. They were created the same way and permissions are the same. I don't know why one works over the other.
/Indiana University/Project Sites/Oncourse Team - FAIL
/Indiana University/Project Sites/SyllabusTest - Success
/Indiana University/Project Sites/CHEN-TES 101 01 - FAIL
/Indiana University/Project Sites/UITS Podcast Team - FAIL
/Indiana University/Project Sites/ePortfolio Playgroun - FAIL
/Indiana University/Project Sites/Testong - FAIL
/Indiana University/SP08 Spring Semester/SP08 IN UITS PRAC 14431 - FAIL
/Indiana University/SP08 Spring Semester/SP08 IN UITS PRAC 14431 - FAIL
/Indiana University/SP08 Spring Semester/SP08 OC DEV C201 DEV2 - FAIL
/Indiana University/SP08 Spring Semester/SP08 IN UITS PRAC 14438 - FAIL
/Indiana University/SP08 Spring Semester/SP08 IN UITS PRAC 14552 - success
/Indiana University/SP08 Spring Semester/SP08 IN UITS PRAC 14392 - FAIL -
Minimum version required to upload and download files using Netweaver Gateway
What is the minimum service pack required to use the feature of Upload and download files using netweaver gateway. I already have a SP05
Hi,
as per this blog How to Read Photo from SAP system using SAP Gateway this should be possible with SP05.
also refer How To Upload and Download Files Using SAP NW Gateway SP06
Regards,
Chandra -
Uploading and downloading files in webdynpro java
how to upload and download xl files in webdynpro java application .
Hi ,
Refer these links they maybe helpful to you
You can check this sampple example from SDN
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40db4a53-41a9-2910-d4a2-9c28283f6658
Uploading and Downloading Files In Web Dynpro Java
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
Uploading and Downloading Files In Web Dynpro Tables
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f
Some more links regarding Uploading and DownLoading Files
Uploading and downloading files
Upload and Download file through RFC called by java
Regards,
Saleem -
HTML tag to upload and Download files
hello all
IS there any HtTML tag to upload and download files ???
rgds
ASHWINYea, for downloading you can use a normal link. For uploading, you need an html form like
<form name="form1" enctype="multipart/form-data" method="post" action="doSomething.jsp">
<input type="file" name="file">
</form>To be honest I know nothing about jsp and servlets yet, but I would guess that it works just the same as with php, with which I am alot more familiar. Basicly, the form tag with the input type="file" tag tells the form to submit your file to the webserver.
Then, whatever script you call with action="anythingYouWantHere" will handle the file the user submitted. There must be very similar functions to handle them in java than there is in php.
Things to look for with file upload that often are buggy is the permissions / security settings you have on your webserver. Sometimes you need to make a special folder with extra permissions to allow you upload to work.
Thats about all I know on this matter, good luck :) -
Upload and Manage Files missing from Tools area
We are attempting to set up a new iTunes U site but have hit a roadblock when we get to the point of uploading content. All the instructions say to click on the "Upload and Manage Files" link in the Tools section of the iTunes page, but we have no such link:
END EDITING
EDIT ACCESS
iTunes U SUPPORT
LOGOUT
Looking at screenshots from other sites, it looks like it should be between END EDITING and iTunes SUPPORT somewhere. We have only two users registered and we are both Administrators with full edit and upload privileges as far as we can tell.
What are we missing here?Were you ever able to get this resolved? We have the same issue.
Resolved, yes, to a point. After doing some extensive reading, I was able to determine that our fatal assumption was that the podcast media files would be hosted by Apple. According to at least one source, Apple has not offered hosting to new iTunesU accounts since January 2009.
Therefore, the reason we did not have a button for "Upload and Manage Files" is because there was no place for us to upload them to.
I have successfully attached feeds from both MobileMe and Podamatic and we are in the process of setting up our OS X Server with Podcast Producer. We will host the feeds locally and make them available through iTunes U, blogs and other channels.
--Brad -
How can I upload and download files with uiXML?
I want to implement upload and download files with uiXML. In some previouse topic I got answare to look in AbstractPageBroker class in JavaDOC. I did it but this is a very-very little resolution description for this problem. I think for developers YOU (UIX Team) must in very quick time to put some examples on the NET because this is a nice technology but with adecvate samplase and developers guide it will be dead very soon. I digging this forum for information. I see many many people have same problems about this technology. They like it and want to use and try but documentation is very very poor.
WE WANT EXAMPLES and separate forum for UIX. I think it deserve this.
If You have any more detailed documentation would be nice to put on the net. I have uixdemo.zip file but this is in very early fase of development. I downloaded it before fwe months. And now I can't find it anymore on youre site. What happend?Attila -
I went back and re-read the JavaDoc for AbstractPageBroker and MultipartFormItem and put together the following sample PageBroker based on the description from the JavaDoc:
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import oracle.cabo.servlet.BajaContext;
import oracle.cabo.servlet.Page;
import oracle.cabo.share.util.MultipartFormItem;
import oracle.cabo.servlet.xml.UIXPageBroker;
* An extension of UIXPageBroker which stores all uploaded
* files in the temporary directory.
public class UploadingPageBroker extends UIXPageBroker
* Override of AbstractPageBroker.doUploadFile() which saves
* all files to the temporary directory.
protected String doUploadFile(
BajaContext context,
Page page,
MultipartFormItem item) throws IOException
// Get the location of the file to create in the temp directory.
// Of course a real application probably wouldn't upload files to
// the temp directory - just using this contrived example to
// demonstrate basic uploading support.
File file = _getFile(context, item);
if (file != null)
// Create a FileOutputStream. Of course, a real application would
// probably want to buffer the output
FileOutputStream out = new FileOutputStream(file);
// Write out the file
item.writeFile(out);
// Close up the output stream
out.close();
// We can return a value here to add to the PageEvent
// if so desired.
return null;
// Gets the File for the item that we are uploading
private File _getFile(
BajaContext context,
MultipartFormItem item
// Get the file name
String name = item.getFilename();
// If we don't have a file, bail...
if (name == null)
return null;
// Get the path to the temporary directory
File dir = _getTempDir();
// Return the File object
return new File(dir, name);
// Returns the path to the temprary directory
private File _getTempDir()
// Get the temporary directory from the ServletContext
ServletConfig sConfig = getServlet().getServletConfig();
ServletContext sContext = sConfig.getServletContext();
return (File)sContext.getAttribute("javax.servlet.context.tempdir");
In this sample, each uploaded file is simply saved in the temporary directory. You'll want to replace the code that creates the FileOutputStream for the uploaded file to use whatever OutputStream makes sense for your application.
BTW - I used the following UIX page to test this out:
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://xmlns.oracle.com/uix/controller">
<content>
<pageLayout xmlns="http://xmlns.oracle.com/uix/ui">
<contents>
<form name="uploadForm" usesUpload="true">
<contents>
<fileUpload name="uploadedFile"/>
<submitButton name="upload" text="Upload"/>
</contents>
</form>
</contents>
</pageLayout>
</content>
</page>
Hope this sample helps with the uploading part of your question. I'll see if I can provide a download sample in a later post. -
About "Upload and download files from ADF into blob type colum."
hi
Using JDeveloper 10.1.3.3.0 I have tried the example available for download from this blog post by Jakub Pawlowski:
"Upload and download files from ADF into blob type colum."
at http://kuba.zilp.pl/?id=1
First a thank you to Jakub for this interesting example.
I have a question about a PDF file that I uploaded using the example.
The file has a size of 10445518 bytes.
After I upload that file, the blob column has a value with a size of 10445516 bytes, 2 bytes less.
SQL> select file_name, dbms_lob.getlength(stored_file) from blob_table;
FILE_NAME
DBMS_LOB.GETLENGTH(STORED_FILE)
ADF-DeveloperGuide-4GL-B25947_01.pdf
10445516If I download that file using the example, it has the same size as the blob value, 10445516 bytes.
If I open the downloaded file, using Adobe Reader 8.1.1, it first shows this message:
"The file is damaged but is being repaired."
After that, there is not problem using the PDF file in Adobe Reader.
I have tried this with both Internet Explorer 6 and Firefox 2.0.0.11.
I have also tried this with other (smaller) files, and those upload and download correctly.
question:
Why are those 2 bytes lost during upload?
many thanks
Jan VerveckenHi!
I can only post you my code that works for me and as I said I had same problems but can't remember what solved them. My code:
public void fileUploaded(ValueChangeEvent event)
FacesContext fc = FacesContext.getCurrentInstance();
UploadedFile file = (UploadedFile) event.getNewValue();
if (file != null && file.getLength() > 0)
// here I have some messages written and a call to the method on AM to save the uploaded file to the DB
private BlobDomain newBlobDomainForInputStream(InputStream in)
throws SQLException, IOException
BlobDomain loBlob = new BlobDomain();
OutputStream out = loBlob.getBinaryOutputStream();
writeInputStreamToWriter(in, out);
in.close();
out.close();
return loBlob;
private static void writeInputStreamToWriter(InputStream in,
OutputStream out)
throws IOException
byte[] buffer = new byte[8192];
int charsRead = 0;
while ((charsRead = in.read(buffer, 0, 8192)) != -1)
out.write(buffer, 0, charsRead);
* Launch the upload - see fileUploaded() for actual upload handling.
* @return null navigation event - we stay on this page
public String UploadButton_action()
if (this.getMyInputFile().getValue() == null)
FacesContext context = FacesContext.getCurrentInstance();
FacesMessage message =
new FacesMessage(FacesMessage.SEVERITY_WARN, JSFUtils.getStringFromBundle("fileupload.emptyfielderror"),
null);
context.addMessage(this.getMyInputFile().getId(), message);
return null;
* Setter for inputFile UI Component.
* @param inputFile inputFile UI component
public void setMyInputFile(CoreInputFile inputFile)
this.myInputFile = inputFile;
* Getter for inputFile UI Component.
* @return inputFile UI component
public CoreInputFile getMyInputFile()
return myInputFile;
}fileUploaded is a valueChangeListener on inputFile and UploadButton_action is as the name says the action for upload button.
Hope this helps. If not, than your problem is probably not the same as mine was, although the message about file corrupted was the same.
Next thing you can check in this case is if your file exceeds max file upload size. I don't know the exact default value, but if the file is too long I think this upload logic will upload only a part of the file and save it to the DB which can also lead to the same file corrupted error.
You can set the max upload value in web.xml like this:
<context-param>
<!-- Maximum memory per request (in bytes) -->
<param-name>oracle.adf.view.faces.UPLOAD_MAX_MEMORY</param-name>
<!-- Use 5000K -->
<param-value>5120000</param-value>
</context-param>
<context-param>
<!-- Maximum disk space per request (in bytes) -->
<param-name>oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE</param-name>
<!-- Use 10,000K -->
<param-value>15360000</param-value>
</context-param> -
How to Upload and Download Files
Dear Friends
I want to write code for Upload and Download file ( Group of Files). Please Guide me the right way I have a few java files and i have compiled that but i donot know how to run that file and i am stranger to java also.
Please send me reply and sugessest me.
my email id is [email protected]
AmoghI have write a upload code, but the code can deal with txt onle, it can not deal with bmp or doc, what the matter?
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Upload extends HttpServlet {
String rootPath;
static final int MAX_SIZE = 102400;
public void init(ServletConfig config) throws ServletException
super.init(config);
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException,IOException
response.setContentType("text/html");
PrintWriter out = new PrintWriter (response.getOutputStream());
out.println("<html>");
out.println("<head><title>Servlet1</title></head>");
out.println("<body><form ENCTYPE=\'multipart/form-data\' method=post action=''><input type=file enctype=\'multipart/form-data\' name=filedata>");
out.println("<input type=submit></form>");
out.println("</body></html>");
out.close();
public void doPost(HttpServletRequest request,HttpServletResponse response)
ServletOutputStream out=null;
DataInputStream in=null;
FileOutputStream fileOut=null;
rootPath = "C:\\upload\\tmp\\"; //The directory to save the target file.
try
response.setContentType("text/plain");
out = response.getOutputStream();
catch (IOException e)
System.out.println("Error getting output stream.");
System.out.println("Error description: " + e);
return;
try
String contentType = request.getContentType();
if(contentType != null && contentType.indexOf("multipart/form-data") != -1)
in = new DataInputStream(request.getInputStream());
int formDataLength = request.getContentLength();
byte dataBytes[] = new byte[formDataLength];
int bytesRead = 0;
int totalBytesRead = 0;
int sizeCheck = 0;
String sourceFileName = "";
String targetFileName = "";
while (totalBytesRead < formDataLength)
sizeCheck = totalBytesRead + in.available();
if (sizeCheck > MAX_SIZE)
out.println("Sorry, file is too large to upload.");
return;
bytesRead = in.read(dataBytes, totalBytesRead, formDataLength);
totalBytesRead += bytesRead;
String file = new String(dataBytes);
dataBytes = null;
int lastIndex = contentType.lastIndexOf("=");
String boundary = contentType.substring(lastIndex+1, contentType.length());
//File Content
//out.println("File content: " + file);
if (file.indexOf("name=") > 0)
int fileNameStart = 0;
int fileNameEnd = 0;
fileNameStart = file.indexOf("filename=\"");
fileNameEnd = file.indexOf("Content-Type:");
sourceFileName = file.substring(fileNameStart + 10, fileNameEnd - 3);
//Source File
out.println("Source file: " + sourceFileName);
String successPage="";
if (file.indexOf("name=\"SuccessPage\"") > 0)
successPage = file.substring(file.indexOf("name=\"SuccessPage\""));
successPage = successPage.substring(successPage.indexOf("\n")+1);
successPage = successPage.substring(successPage.indexOf("\n")+1);
successPage = successPage.substring(0,successPage.indexOf("\n")-1);}
String overWrite;
if (file.indexOf("name=\"OverWrite\"") > 0)
overWrite = file.substring(file.indexOf("name=\"OverWrite\""));
overWrite = overWrite.substring(
overWrite.indexOf("\n")+1);
overWrite = overWrite.substring(overWrite.indexOf("\n")+1);
overWrite = overWrite.substring(0,overWrite.indexOf("\n")-1);
else
overWrite = "false";
String overWritePage="";
if (file.indexOf("name=\"OverWritePage\"") > 0)
overWritePage = file.substring(file.indexOf("name=\"OverWritePage\""));
overWritePage = overWritePage.substring(overWritePage.indexOf("\n")+1);
overWritePage = overWritePage.substring(overWritePage.indexOf("\n")+1);
overWritePage = overWritePage.substring(0,overWritePage.indexOf("\n")-1);
targetFileName = sourceFileName.substring(sourceFileName.lastIndexOf("\\") + 1);
targetFileName = rootPath + targetFileName;
//Target File:
out.println("Target file: " + targetFileName);
int pos; //position in upload file
pos = file.indexOf("filename=");
pos = file.indexOf("\n",pos)+1;
pos = file.indexOf("\n",pos)+1;
pos = file.indexOf("\n",pos)+1;
int boundaryLocation = file.indexOf(boundary,pos)-4;
file = file.substring(pos,boundaryLocation);
File checkFile = new File(targetFileName);
if (checkFile.exists())
if (!overWrite.toLowerCase().equals("true"))
if (overWritePage.equals(""))
out.println("Sorry, file already exists.");
else
//redirect client to OverWrite HTML page
response.sendRedirect(overWritePage);
return;
File fileDir = new File(rootPath);
if (!fileDir.exists())
fileDir.mkdirs();
fileOut = new FileOutputStream(targetFileName);
fileOut.write(file.getBytes(),0,file.length());
if (successPage.equals(""))
out.println("File written to: " + targetFileName);
else
response.sendRedirect(successPage);
else //request is not multipart/form-data
out.println("Request not multipart/form-data.");
catch(Exception e)
try
System.out.println("Error in doPost: " + e);
out.println("An unexpected error has occurred.");
out.println("Error description: " + e);
catch (Exception f) {}
finally
try
fileOut.close(); //close file output stream
catch (Exception f) {}
try
in.close(); //close input stream from client
catch (Exception f) {}
try
out.close(); //close output stream to client
catch (Exception f) {}
} -
Our admins don't see "Upload and Manage Files" - even the Primary Admin. Why?
We are setting up our iTunes U site for the first time. NONE of our admins, including the primary admin, can see the "Upload and Manage Files" link in the Tools section, when we are editing a Course page. We can set up Course pages all day long, but we cannot upload content. Obviously this is a show-stopping problem, and so far nobody from Apple has been able to tell us why.
Any suggestions? Thanks in advance,
-- WillGreetings Will;
Are you and your Administrators using iTunes U Public Site Manager to edit your content or does your tools section look like the attached screen capture?
Syd Rodocker
iTunes U Administrator
Tennessee State Department of Education
Tennessee's Electronic Learning Center
Maybe you are looking for
-
I currently have 8GB ram and the stock video card and an ssd HD 240 GB.
-
Moving iPhoto library -- how do i point iPhoto to library on external hard drive
I am trying to move my iPhoto library to an external hard drive. I've already copied it from my MacBook to the external HD. I tried launching iPhoto while holding down the option key so that I can point iPhoto to the new location, but no new window
-
Drag and Drop - Incomplete Wireless Copying of Files
Ever since I upgraded to 10.6.4, I have a problem doing the "drag and drop" method of copying files wirelessly from my Mac to the HP MediaSmart server connected to my Apple AirPort N Base station. I used to be able to simply copy files without proble
-
Generic Extraction using Function Module
i want to know the step by step procedure for this extraction and also why we need to go for this, i mean in which scenario this is the best method. and do we need to write any abap code for doing this.and also i need what alla transaction codes we u
-
Dead Battery Chargers for Macbook
Hi, I hope someone can help. About two weeks ago my sister's charger for her white macbook (brought in January 2008) died. This is no problem because I have a black macbook (brought in April 2007) so she was using my charger until we brought a new on