Well, you can file Chapter 7, complete liquidation, or, you can file Chapter 13 reorganization. The bankruptcy will stay on your credit for 7 years. Not to mention that many companies will not hire anyone who has filed bankruptcy, they figure if you cannot manage your money, how can you manage your job.
Read up on the above, talk to an attorney and make your decision from there.