Download Deb file from Ubuntu PPA
I want to download a deb file from a ubuntu ppa. How can I do this from arch?
Usually you could just go to http://repo.acestream.org/ubuntu/ in your browser and browse for the package you want, however for some reason Acestream have disabled browsing directories on their web server so you have to do this the long way...
First download the package list using one of the following URL's...
http://repo.acestream.org/ubuntu/dists/ … 6/Packages
http://repo.acestream.org/ubuntu/dists/ … 4/Packages
Take a look at the downloaded package list (it's just a plain text file) and append the filename field for your required package to the repos URL to get the full URL of the .deb file, for example...
http://repo.acestream.org/ubuntu/pool/m … 4_i386.deb
Last edited by slithery (2014-02-06 14:43:07)
Similar Messages
-
Error while downloading PDF file from FTP Server
Hi Friends,
I have sent a PDF file with data to FTP , Then i want to check that uploaded pdf file , whether that is correct or not?
for that , i have downloaded that file from FTP and i am trying to open the file . but it is giving this problem .
"There was an error opening the document . The file is damaged and could not be repaired."
will you suggest me regarding this.
thanks in advance.
balaji.T.CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = spoolno
src_spoolid = wa_file-rqident
no_dialog = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
pdf_bytecount = numbytes
pdf_spoolid = pdfspoolid
OTF_PAGECOUNT =
btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11.
because of this one PDF internal table is obtained.
OPEN DATASET L_FILENAME FOR OUTPUT in text mode MESSAGE MSG.
LOOP AT pdf.
CONCATENATE pdf-tdformat "Material group
pdf-TDLINE "Basic Material
INTO ITEXT-TLINE ..
APPEND ITEXT.
TRANSFER ITEXT TO L_FILENAME.
ENDLOOP. -
Downloading a file from App Server to User's Desktop
Hi All,
I know that there are many threads on file upload and download :-)
I have tried to browse through most of them and could not find my solution.
The requirement is to place a file in the unix app server directory and allow the user to download it using a link, to the user's desktop. In case you think that this has already been answered in an old thread, kindly give me the pointer. Any sample code for doing this, would be great.
I know how to upload a file from desktop to table/app server. I know how to download a file from a BLOB column in database.
Thanks,
AmitYou would not be able to use file upload or download beans, as they interact with the database and not the filesystem.
You would need to write a simple file reader routing in plain java.
Tapash -
How to download a file from Middleware server
Hi,
I have a requirement to list file names in a table layout and when user clicks on file name, file must be downloaded to the client tier. Source files are located in 11i Apps middletier.
I did not find any examples on how to achieve this using OAF. All I see is downloading file from BLOB inside a database.
please help..OAMessageDownloadBean is the bean that lets you download a file from middletier.
Please see the File Upload and Download chapter in devguide for implementation details.
Thanks
Tapash -
How to download a file from Oracle UCM using OSB
Hi,
How can I download a file from Oracle UCM and save it on a filesystem using OSB 11.1.1.5.
ThanksUCM supplies webservice interfaces which let you retrieve the filecontent by soap calls from UCM (http://ucmhost/_dav/cs/idcplg for example). (maybe you should enable some settings on ucm to have this webservice interface getting published).
This services for example has 2 operations getFileByID and getFileByName.
So you can just call these services from within OSB.
After that you need to do some tests if you eitherway need to create a file-transport business-service and call this one from your proxy service or create a messageType proxyservice (binary) which calls this file-transport business service to be able to write fo filesystem.
I think for the OSB book i used a jca file adapter generated in Jdeveloper and used that one to write to filesystem. -
How to Download a file from web server using servlets
how do we download a file from Java Web Server connecting to oracle database
it should start as soon a i click a button in my html browser
please reply as it is needed to complete my project to submited to the collageWith SQLJ you can do it.
When you look at:
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/basic/basic.htm
or
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm
There are samples for reading LONGRAW / BLOB from Database. If you want use it in servlet you have to pass the result to the responce object, set the correct mime-type and set the response.setContentLength( xx). This is for some PlugIns nessessary (pdf).
regards Dietmar -
How to download a file from application server to presentation server
Hi experts,
I want to download a file from application server to presentaion server, file contaims three fields customer name, customer email id and status..
help me out i m new into sap.Dear Aditya,
Please check below thread
http://scn.sap.com/thread/1010164
it will help you.
BR
Atul -
How to download a file from server machine to client machine using jsp
Hi,
In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?
Its an emergency for me to do this.
Can anyone provide me the full code to download a file from server machine as I don't have
time to browse through various sites.
thanks in advance,
TiijnarPlease post your code using code tags (click on CODE above the text area, when posting)
response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
BufferedInputStream input = null;
BufferedOutputStream output = null;
try {
// Open streams.
input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
// Write file contents to response.
byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
int length;
while ((length = input.read(buffer)) > 0) {
output.write(buffer, 0, length);
// Finalize task.
output.flush();
} finally {
// Gently close streams.
close(output);
close(input);
} -
How to download a file from server?
Hi everyone,
I need to download a file from my server to client machine. I got a sample code from ur forum and I modified it slightly.
//Snippet of code:
public void doGet(HttpServletRequest req, HttpServletResponse res)throws
ServletException, IOException{
int bytesRead=0;
int count=0;
byte[] b1=new byte[1];
//OutputStream out=res.getOutputStream();
res.setContentType("application/html");
//Create an input stream from file URL.
String fileURL="http://localhost:8080/webapps/upload/upload.html";
BufferedInputStream bis=null;
BufferedOutputStream bos=null;
boolean download=false;
res.setHeader("Content-disposition", "attachment; filename=upload.html " );
try{
URL url=new URL(fileURL);
URLConnection connection=url.openConnection();
InputStream in=connection.getInputStream();
bis=new BufferedInputStream(in);
FileOutputStream fileout=new FileOutputStream("upload.html");
bos=new BufferedOutputStream(fileout);
while(-1 != (bytesRead = bis.read())){
try{
bos.write(bytesRead);
bos.flush();
}//end of try forwhile loop
catch(SocketException e){
setError(e);
break;
The code is getting compiled, when I run the appln using the URL,
http://localhost:8080/upload/servlet/DownloadFile
it opens a pop up dialog box, asking whether to "open", "save" or "cancel" buttons. When I try to open a file, I'm getting a blank page.
I'm not getting the contents of the file.
So pls can anyone tel me wht's wrong in the code or do i need to add few more lines in my code?
Also pls let me know, how can I download any files of type .doc, html, .txt, .zip, or any type, without mentioning the file type?
Thanks in advanceDo not use a FileOutputStream (that will save it locally to the server). Call HttpServletResponse.getOutputStream(), which will send it back to the browser. Also remember to call close() on the stream at the end.
- Saish -
How to download a file from database
Hi,
My flex application contains a form that uploads a file into the server. This file is however saved in the database, and not on the disk. Most of the tutorials in the database explains how to download a file by passing the file's url to the "download" function of the fileReference Object. That dsnt work for me as my file is saved in the database.
How do I download this file from the server ?
For example, in php, we would do smthing like this :
$content = $file_to_download['content'];
$size = $file_to_download['content_size'];
$type = $file_to_download['content_type'];
$name = $file_to_download['filename'];
header("Content-type:$type");
header("Content-length:$size");
header("Content-Disposition:attachment;filename=$name");
header("Content-Description:PHP Generated Data");
echo $content;
When executing this file, it opens up the "download file" dialog box. How do i get the same effect in flex 4 ?You need the bytes use FileReference.download() and after download you can save
it on disk with FileReference.save(); You also need FP 10 at least I think. Use
the docs they are less error pron than mi memory :).
C -
How to download a file from the net and save it into .txt format in a datab
Can some one show me a tutorial on how to download a file from the net and save it into .txt format in a database?
Thank you,http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
-
How to download a file from Path specifed
Hi Frndz..
How to download a file from a specified path like , i have a file on server in the path like "C://temp/Sap.pdf"
I want to download this to user desktop..
Thanks in Advance
regards
RajeshHi,
For file down load u have to use a UI element as "File download".
u just create context attribute as setdownload_res and file data.
setdownload_res as of type "com.sap.ide.webdynpro.uielementdefinitions.Resource" then bound it to the ui element "resource".
file data as of type "com.sap.tc.webdynpro.progmodel.api.IWDInputStream"
and set calcuclated as true and read only as true.
then in doinit method u just write this code
IWDAttributePointer attr = wdContext.currentContextElement().getAttributePointer("fileData");
IWDResource res = WDResourceFactory.createResource(attr,null,WDWebResourceType.UNKNOWN);
wdContext.currentContextElement().setDownload_res(res);
wdComponentAPI.getMessageManager().reportSuccess(""+c);
after this in the getter method u write this code
IWDInputStream stream = null;
try
stream = WDResourceFactory.createInputStream(new FileInputStream(new File("<pathof the file to be download>")));
catch(Exception e)
e.printStackTrace();
return stream;
also look at this thread How to DownLoad any type of File from the server(PDF,XLS,Word)
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
PradeeP -
How to download a file from the internet using terminal
how to download a file from the internet using terminal
does any one know how to download afile from the internet using the Terminal application?Use curl. Something like this:
curl -O http://www.example.com/filename.zip
For more info, type +man curl+. -
How to download a file from AL11 inot Excel format without collapse the col
Hi,
Please suggest how to download a file from AL11 to Excel sheet.currenlty all field are merging into single column.I writing this file via using DATASET.
Regards
RickyHi,
Try this code,
==============================================
TYPES : BEGIN OF ty_emp,
empno(2) TYPE c,
empid(10) TYPE c,
empname(3) TYPE c,
END OF ty_emp.
DATA : it_emp TYPE TABLE OF ty_emp,
wa_emp TYPE ty_emp.
DATA : pbk TYPE string.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_file TYPE rlgrap-filename.
PARAMETERS : p_asfile TYPE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK b1.
pbk = p_file.
OPEN DATASET p_asfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
DO.
READ DATASET p_asfile INTO wa_emp.
IF sy-subrc <> 0.
EXIT.
ENDIF.
APPEND wa_emp TO it_emp.
ENDDO.
CLOSE DATASET p_asfile.
Filling the already created file with download PS radiobutton
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = pbk
FILETYPE = 'ASC'
append = 'X'
write_field_separator = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
TABLES
data_tab = it_emp
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
==============================================
Regards,
Krrishna -
when i try to download a file from the internet it starts to download but when its finished it opens up in the app "text edit" and it says this file cannot open in DOS mode.
Can anyone help?It sounds like perhaps the file doesn't have an extension that the system recognizes. Is this all files, or just one specific one, and if so, which? What is the name (and extension, if it has one) of the downloaded file? What kind of file do you *expect* it to be? (PDF, or whatever). Renaming a file with the appropriate extension can often fix that kind of problem.
Matt
Maybe you are looking for
-
is there anyway that i can add photos to my ipod with out syncing it to that computer because of course if i do it will overwrite the ones i have. Help me please.
-
I have a simple form. The form only has 3 fields on it:(Bank, Limit, Name of Guarantor(s) ) It supposed to 1. fetch the row 2. Allow user to update 3 fields 3. Update the row. I am getting an error on the fetch: ...Process "Fetch Line Of Credit": DML
-
Nokia 5800 doesn't go online in Maps
Hello. I've a Nokia 5800 XpressMusic and when I go to Ovi Maps it shows a message "No internet connection. Select 'Options' > 'Tools' > 'Go online' to go online". I did what it said and again there is the same message displayed. I had tried to go to
-
SSM7.5 SP3 - Loading Bootstrap Data Issue
Hi, I'm installing SSM7.5 SP03 but I'm stuck in the Loading Bootstrap step in the installation process. When I try to do this in the Transporter page: 1. In a Web browser, enter this URL to open the Tools utility: http://<nwce_server>:<port>/strategy
-
hi, i hv macbook mid 2010 ..it was working fine till few days back but after updating it to mavericks, it keeps on shutting down itself...what to do ? could sm1 help me out ?