How to receive data from setpu{} to computer through bluetooth ?

You can receive data while in the setup() function but you will need to create a repetitive process that keeps checking until all the data has arrived. It seems easier to do that in loop().

If you tell us what you are trying to achieve we can probably give better advice.

...R
Serial Input Basics