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 4569888
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:17:02+00:00 2026-05-21T19:17:02+00:00

I have a sqlite db named sports.db that is 9.8 mb in size. I

  • 0

I have a sqlite db named sports.db that is 9.8 mb in size. I would like to split it up in Terminal into 1mb pieces (I hate you Android), what is the terminal command syntax that will do that for me?

split 1 sports.db didn’t do it for me…

EDIT:

It is possible to cut a file up into raw binary pieces in DOS, or the mac equivalent Terminal. That’s all I want to do. I just can’t figure out the syntax.

Thanks

LATE UPDATE:

This is what worked for what I wanted –

split -b 1m input prefix

where input and prefix are your input file and what you want the prefix of your output files to be

  • 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-21T19:17:03+00:00Added an answer on May 21, 2026 at 7:17 pm

    I don’t fully understand what u want to do. But if u want to copy database into sd-card or internal storage from assets, I have some solution u might need.
    Split the database into 1MB using hj-split and Copy using InputStream. Here is some code for u

        InputStream databaseInput = null;
        String outFileName = DB_PATH + DB_NAME;\\here is u'r db name and path
        OutputStream databaseOutput = new FileOutputStream(outFileName);
    
        byte[] buffer = new byte[1024];
        int length;
        for(int i=1;i<10;i++){
            databaseInput = myContext.getAssets().open("sport.db.00"+i);\\
            while ((length = databaseInput.read(buffer)) > 0) {
                databaseOutput.write(buffer, 0, length);
                databaseOutput.flush();
            }
            databaseInput.close();
        }
    

    Hope this can help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have sqlite database which I would like to insert values in Hebrew to
I have two SQLite tables, that I would love to join them on a
I would like to have an interface between Python and sqlite. Both are installed
I'm using the Firefox sqlite manager addon and I have a database table named
I have a field (named as time, but type is TEXT) in my Sqlite
I have a Favorites view, that loads data from an sqlite database. It loads
I am using SQLite Manager. I have a column named MainContactName and its structure
I create a Class named MSqliteHelper to help me use the SQlite in android
I have a sqlite database with a column named 'name'. The name column contains
I have a JavaScript function named openDatabase() that starts with: function openDatabase() { try

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.