well in a database is saved a binary code (this is a *.jar) i need to download this code (with a select query) and Rebuild this file
What are the setps for convert since a String to a File?
someone told me i need convert it to array byte, but i dont know how to convert a String to a array byte... what are the best steps?
this code return me a table
Public Function ConseguirCatalogo() As DataTable
Return conn.RegresarTabla("select archivo from catalogo where id= (select id from periodos where actual=1)")
End Function
and this code i get the String
Private Sub EnviarArchivo() 'para el catalogo
Dim MyTable As DataTable = consultas.ConseguirCatalogo()
Dim binarycode As String = MyTable.Rows(0)(0).ToString()
End Sub
now what are the next setp for convert it finally to a file? ( it is a *.jar)