Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:12:51+00:00 2026-05-26T04:12:51+00:00

well in a database is saved a binary code (this is a *.jar) i

  • 0

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)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:12:52+00:00Added an answer on May 26, 2026 at 4:12 am

    When you have converted the data into a string, it’s already ruined. You should get the data as a byte array directly:

    Dim binarycode As Byte() = DirectCast(MyTable.Rows(0)(0), Byte())
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DataTable which I select from database (Well, these data cross several
Well this is incredibly frustrating. After being nagged by Rails that I need to
I need a database for this: <?php if (isset($_POST['addcontentbox'])) { // Connection to Database
I've recently inherited the job of maintaining a database that wasn't designed very well
Well behaved windows programs need to allow users to save their work when they
Well, this is my first post here and really enjoying the site. I have
I need to store significant amounts of rich text in a SQL database, retrieve
We are telling our client to put a SQL Server database file (mdf), on
Lots of words below, sorry - but I wanted to explain this situation well:
Well i m not sure how to exactly phrase this but here i go.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.