How to send large attachments? - java

Say I have an account on Yahoo. They limit the attachment size I can send, although they don't limit the size of the mails I can get. How do I send large attachments?
I successfully sent (via java or c#) emails, and used google-drive (web) to send large attachments (174M), but how do I combine it? I haven't found anything that says how to add to google drive and send it.
I saw some sites that enable you to send large files, but the problem is I want the files in the email server (Yahoo/GMAIL ), not on anonymous site (and I haven't found a sites that send email, only sites that store themselves). How do I do it?
Can I send the mails via telnet somehow?

As an option, use Google Drive SDK in your application.
Before sending email, upload your file to Google Drive and send the link to the uploaded file.

Related

How to upload videos to JWplayer server from android programmatically

I am using JW player in my Android application. Is there any way to upload videos from my client side(Android app) to JWplayer Server? I gone through
your site https://developer.jwplayer.com/jw-platform/docs/developer-guide/management-api/uploading-videos/ to upload videos but its not clear that the code given is to upload the videos from android app or from a intermediate server.
Any clarifications on this would be greatly appreciated.
What we tried from our android app side is to upload the videos using below,
POST URL : http://upload.jwplatform.com/v1/videos/upload?api_format=json&key=vtQmcboj&token=e2bbad0fd889d5d2e30047596cfe3789778257d2
The params i sent,
api_key
api_secret
local_video_path
You cannot upload videos directly to JW player since its a Two tier process.
I have been workign in a java application where the user can upload videos, watch it and download it.
You will have to send the key and the token for the auth request, which JWplayer thinks is not safe from their end so they just will not allow you to upload the videos to their server.
To acheive the scenario, you must be running your own server which instead upload the video to the JW platform. All the error responses will have to be handled in your server side if the upload gets failed.
Also, JW player handles resumable upload process. So, once you sent the data to your server, your server can send the data in small units and the interruption in connection will be handled in JWplayer end.
In my own scenario, my server will be handling the resumable uploads from client(since its not possible to resume uploads from client without having valid protocols embedded in Server side) and my it indeeds send the data's to the JW player for encoding.
To be more precise,
Client ----> Your server ----> JW player server.
The POST method URI which you tried is for server side coding and not meant for client side. You can refer their support team for more details, since i came to know these details after reaching out them.
As #DeadSpider answered,
It is not possible from client side. Go for a server and once you get it work, cheers!
Yesterday i got a demo project from JWplayer and it is absolutely possible now to upload videos to your dashboad from client side.
http://qa.jwplayer.com.s3.amazonaws.com/~george/BishopQA.zip
Check the above project and in upload activity you will have the code. Its working for both android and ios platforms.

Is possible to send files through sms (not in mms) in Android?

Is any possible to send the file through sms? I want to encrypt the file to string format and sent it. The encrypted file to be decrypted after receiving the text message. Is this possible in android apps?
Its SMS ( Short Message Service). You can send limited amount of text via SMS not file.
Read Wiki : http://en.wikipedia.org/wiki/Short_Message_Service
If you want to deal with files better to have your own app which encrypts/decrypts file data. you will have total control on files and data.
If you still want to use SMS. divide the file data in multiple chunks and send it via SMS API. Have your app to read SMS by registering through Broadcast receiver and READ_SMS permission in your manifest.After reading decrypt the data and store in a file. Now you have the decrypted data stored in destination device. You can show the data on your App.
Disadvantage : Because you are sending data using carrier , It does not give any guarantee for when or whether data will be delivered or not. Also now you playing with data chunks you will have to take care for sequence of data as well. Other wise you will be in mess.
Yes, but there are too many limitations to make this practical.
First of all, what most people don't know about SMS sending on Android is that it has a limitation of 100 SMS per hour unless you root the phone. And even if you are the only one to send SMS, the files will probably be too big.
There was a library once for the sharing of data through SMS called Mobile Push (droidpush), but it is no longer available

How to send media from server to android app?

I am working on an Android app. I want to send images and videos from my server to my Android app. GCM allows only 4kb of data to be sent, but media files are generally of larger size so how to do this?
You don't send it over to your client using gcm. You use gcm to inform the client about new stuff to fetch from your server / the cloud.
Read the gcm-docs and the "send-to-sync" idea under advanced topics.
Check the Google IO web-api video (~ minute 30) for the big picture Google I/O 2012 and the files in android-sdk/extras/google/gcm/samples
I actually wrote two blogs posts on this. The first one shows how to send a link in the payload and then download the files using the URL.
The second shows how to send small images as part of the 4K payload.
Store the media (images, video etc.) on your server & send link of them through GCM to android app.

Retrieving Email attachment from Outlook

I have a requirement, I am getting more bounced emails when i send some email newsletters to my clients and I am sending the email fron Outlook. Bounced email is coming from "Mail Delivery Subsystem" and it has some attachments. In that attachments, it is having my original mail. I want to extract that original email through java. I would like to know any feasible solution for this
Any help in this regard is much appreciated.
For Exchange Server 2007+, you could use Microsoft Java EWS API or just talk directly to EWS. See related SO post.
You would have to use .NET to integrate directly with Outlook via VSTO.

App Engine chat application

I am writing a chat application on app engine using xmpp. My idea is to allow users to chat to one another. I can get messages to send to a google talk account, by taking the logged in user and removing the #gmail.com part of the address and replacing it with #appid.appspotchat.com )so for example if the logged in user is bob#gmail.com, the jid used to send from will be bob#appid.appspotchat.com). You can then send messages to an google talk account, e.g. jeff#gmail.com.
My problem is in receiving the messages back again. The developer pages show how the app itself can receive messages to the appid#appspot.com jid, but how do you get it to receive messages to the appid.appspot.com jid, and then present these messages tp the logged in user? The overall idea is when a user logs in, I will retrieve thri contact list, get the presence of their contacts (replacing gmail.com with appid.appspotchat.com) then present the available contacts to the user.
If this is not possible, is there a way to let the logged in user chat to other users in a different way? Ive briefly looked at the channel api but i don't think this is suitable?
You could use the Channel API to send a message down to a client when your server gets a message intended for that user. There's no facility to direct a XMPP message directly to a user on your own page; the XMPP API is used to send messages to users signed in to XMPP clients (such as Gmail, Pidgin, etc).
You can't use anything#your_app_id.appspot.com. Instead you must use anything#your_app_id.appspotchat.com as described in XMPP Addresses.

Categories

Resources