Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Italian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Errore di lettura dopo download

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2009, 03:30 PM
Junior Member
 
Join Date: Feb 2009
Posts: 26
Default Errore di lettura dopo download

Ciao a tutti .
Ho un problema per leggere un file.txt scaricato.
Nell'istruzione: "Reader.New1(Response.GetStream,True)"
mi da questo errore:
formato della stringa di input non corretta.

Allego Sub

Sub DownloadFile (LocalFile,URL)
Response.New1
Request.New1(URL)
Response.Value = Request.GetResponse 'Launch the request and get the response.
Msgbox("Download size: " & Response.ContentLength) 'Show the file size.
Reader.New1(Response.GetStream,True) 'Use a BinaryFile object to read the data from the Response stream.
FileOpen(c1,LocalFile,cRandom)
Writer.New1(c1,False)
Dim buffer(4096) As byte
count = Reader.ReadBytes(buffer(),4096)
Do While count > 0
Writer.WriteBytes2(buffer(),0,count)
count = Reader.ReadBytes(buffer(),4096)
Loop
FileClose(c1)
Response.Close 'Close the Response stream.
Msgbox("File saved.")
End Sub

Ho allegato le librerie: HTTP, DOOR

Ciao a tutti

Corrado
Reply With Quote
  #2 (permalink)  
Old 09-11-2009, 05:44 PM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Post

Ciao Corrado,

forse nel tuo progetto devi includere anche la libreria BinaryFile.dll, comunque in allegato trovi il tuo esempio leggermente modificato funzionante.

Saluti,

Massimo
Attached Files
File Type: sbp download.sbp (1.3 KB, 12 views)
Reply With Quote
  #3 (permalink)  
Old 09-11-2009, 08:13 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Italy
Posts: 541
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Bentornato maXim!

tutto ok?

ciao
moster67

Quote:
Originally Posted by maXim View Post
Ciao Corrado,

forse nel tuo progetto devi includere anche la libreria BinaryFile.dll, comunque in allegato trovi il tuo esempio leggermente modificato funzionante.

Saluti,

Massimo
__________________
rgds,
moster67
Reply With Quote
  #4 (permalink)  
Old 09-12-2009, 10:08 AM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Smile

Ciao moster67,

ebbene sì: sono tornato!
Tutto OK, solo il tempo necessario per rientrare in carburazione e per farmi venire qualche altra idea e quindi pubblicare qualcosa di nuovo... se ne avrò voglia!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i download? cmailj Questions (Windows Mobile) 1 03-29-2009 02:17 PM
why i can't download dzril.dll aa1025 Questions (Windows Mobile) 1 12-14-2008 05:23 AM
help with download file Byak@ Questions (Windows Mobile) 2 07-14-2008 07:14 PM
Why can't I Download all the examples? Jonathon Questions (Windows Mobile) 4 06-24-2008 05:18 PM
Lettura del registry Raytracer Italian Forum 9 04-19-2008 02:03 PM


All times are GMT. The time now is 02:54 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0