PDA

View Full Version : Tipo di variabile adatto ad un file


ligabuz
22-12-2006, 15:13
Con ASP.NET ( vb ) sto facendo una pagina che :
Con streamreader legge tutto il contenuto di un file ( MP3 )
COn streamwrite lo mette dentro un altro file mp3

La variabile che memorizza il primo file è String, ma mi da errore !!! :mad:

Ecco l'errore :
Found a high surrogate char without a following low surrogate at index: 3. The input may not be in this encoding, or may not contain valid Unicode (UTF-16) characters. Parameter name: chars

Come faccio a risolvere questo enorme problema ( anche con altre funzioni )

Grazie e ciao ! ( auguri )

:help:

^TiGeRShArK^
22-12-2006, 17:15
...Rsp al volo dal cell mentre sono bloccato a 4 km da roma sud direi ke devi usare 1 array di byte x memorizzare un file binario..Anke se onestamante m sfugge il motivo x memorizzare 1 mp3 in memoria... :mbe:

ligabuz
22-12-2006, 18:13
Grazie !

Mi potresti dare informazioni piu' dettagliate ( anche guide )