Questions tagged [attachment]

Any additional content added to a digital object, such as an email attachment.

Many languages provide facilities for sending email or transmitting other data (e.g. SOAP) but may not always provide a clear interface for attaching documents or other arbitrary binary data to the message or object.

This tag is for all questions relating to adding attachments to transmitted data or providing an interface for doing so.

2942 questions
11
votes
3 answers

attach a local video using UIActivityViewController

I'm writing an iOS app that has locally saved videos (.mov). I'm trying to attach the video via UIActivityViewController. It works great for email. The video is successfully attached and sent. It also works when saving to camera roll. It doesn't…
ijason03
  • 571
  • 2
  • 9
  • 26
11
votes
2 answers

Register new mime type in android

this is related to question how to open an attachment with my applicacion from within the email app? (mime type, intent filter ...) which I thought I had it solved, but it is not. I found that some email clients (Samsung Galaxy SII built in email…
richardtz
  • 4,993
  • 2
  • 27
  • 38
10
votes
2 answers

How to take a picture and send it as an email attachment in iOS

Currently, I can set a button to take a picture, but I'm unsure how to pass this as an attachment for an email in the same view. The view is for a quote and allows the user to enter data into a few fields then has a button to email said data.
fmi
  • 512
  • 4
  • 14
10
votes
1 answer

Storing uploaded file data with RavenDB

What's the current best practice for storing file data with RavenDB? (CDN or RavenDB Attachments) I have been looking at Rob Ashton's excellent demo application RavenDB Photo Gallery Project. In the demo project he stores the files as RavenDB…
Ken Burkhardt
  • 3,528
  • 6
  • 33
  • 45
10
votes
5 answers

How to download the current page as a file / attachment using Javascript?

I am aware of the hidden iFrame trick as mentioned here (http://stackoverflow.com/questions/365777/starting-file-download-with-javascript) and in other answers. I am interested in a similar problem: How can I use Javascript to download the current…
xan
  • 7,440
  • 8
  • 43
  • 65
10
votes
1 answer

Sending email with attachment through GMailSender?

I have been reading the blogs and have tried numerous implementations but have still failed to get an image attached to an email that I'm sending through GMail using java. I downloaded all the jars and added GMailSender.java,…
Brandon Englert
  • 161
  • 1
  • 3
  • 8
10
votes
1 answer

Attaching file to an email in python leads to a blank file name?

The following snipit of code works fine, except for the fact that the resulting attachment file name is blank in the email (the file opens as 'noname' in gmail). What am I doing wrong? file_name = RecordingUrl.split("/")[-1] …
Sean W.
  • 4,944
  • 8
  • 40
  • 66
10
votes
4 answers

Sending mail with attachments programmatically in ASP.NET

I am dynamically generating a number of different types of files based upon a GridView in ASP.NET - an Excel spreadsheet and a HTML file. I am doing so using this code (this is just for the Excel spreadsheet): Response.Clear(); …
Chris
  • 7,415
  • 21
  • 98
  • 190
10
votes
2 answers

How to save email attachments in C#

How can I, using C#, Download an email attachment from my mail (for instance gmail)?
user247841
  • 139
  • 1
  • 1
  • 4
9
votes
1 answer

Outlook IMAP completed email and attachments download event

My Outlook add-in (C++) processes received email attachments as they are received, which works fine for POP3 accounts, but doesn't work with IMAP accounts because I only receive the email header with the events I use (I tried the events NewMailEx,…
rad
  • 128
  • 1
  • 7
9
votes
6 answers

Adding an attachment to SOAP request

I am at a loose end as to how to add an attachment in my SOAP request. We have to consume a thrid party web service, built in java, which is the most convoluted thing I have ever come across. Any other web services we have used, that required…
anothershrubery
  • 20,461
  • 14
  • 53
  • 98
9
votes
4 answers

Send Uploaded File as attachment

I am trying to get an uploaded file to be sent as an attachment in my ashx file. Here is the code I am using: HttpPostedFile fileupload = context.Request.Files[0]; //filename w/o the path string file =…
nikhil
  • 211
  • 1
  • 2
  • 11
9
votes
0 answers

HtmlUnit download attachments

I need to save files from websites Using HtmlUnit. I am currently navigating to pages that have several anchors that use javascript onClick()="DownloadAttachment('attachmentId')" to get the files. The files can be of pretty much any type ( xls, doc,…
TheBeeKeeper
  • 225
  • 2
  • 12
9
votes
3 answers

PHP create Excel spreadsheet and then email it as an attachment

I'm using the following code:
benhowdle89
  • 36,900
  • 69
  • 202
  • 331
9
votes
2 answers

Send email with bitmap object as an attachment in Android?

I want to send the bitmap as an attachment in the mail. The image is not stored in SDCARD or anywhere in the device. The bitmap object gets created at runtime and that should be sent as an attachment.
thefrugaldev
  • 1,619
  • 4
  • 18
  • 36